rfc:typed-aliases
Differences
This shows you the differences between two versions of the page.
rfc:typed-aliases [2024/09/06 18:07] – created withinboredom | rfc:typed-aliases [2024/09/06 18:36] (current) – add reasoning withinboredom | ||
---|---|---|---|
Line 231: | Line 231: | ||
Developers may access the '' | Developers may access the '' | ||
+ | |||
+ | ===== Why Special Classes? ===== | ||
+ | |||
+ | After looking at the current type system in PHP, it became clear that if we were to implement aliases in the existing type system, it would be overly complex and challenging to maintain. Using classes, however, is much simpler, easier to maintain, and debug. It is also easier to reason about in the symbol tables as well since classes are synonymous with types in PHP. | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== |
rfc/typed-aliases.txt · Last modified: 2024/09/06 18:36 by withinboredom