HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by cprecioso | Hacker News Reader
Parent
Full thread
cprecioso
·
You can kind of do that by creating your own subclass, right?
View on HN
mlajtos
·
Well, you can subclass it, but you would have to convert regular array to your subtype every type you would want to use some extra property. With proposed way, you can still enjoy the terseness of the language.
Reply on news.ycombinator.com