News for hackers. Stuff that matters.
Re:PHP Type Alias by stefanos82 on Thursday October 19, 2023 @02:44PM (#37946861)
That is something I was looking for to be honest with you, but didn't know how to "look" for it lol.

I had in mind the modern C++ `using` mechanism for creating my own types, but didn't know how to write such logic.

I guess a union would be handy dealing with different alias types, depending on the use case, if you understand what I mean.

On the other hand, `match` is far better to be used if we really get type aliases as you suggest.

There are no comments on this comment yet.