4 ms·
This syntax is horrible. I'm surprised they didn't just copy Python's typing syntax.
by cheez 6y ago
This syntax is horrible. I'm surprised they didn't just copy Python's typing syntax.
- Conlectus 6y agoAn important limitation here is that it needs to be valid Ruby syntax as well, since this was added without/before official Ruby typing support.
- Trasmatta 6y agoI believe one of their guiding principles was that they wanted all the syntax to be valid Ruby, because they did not want it to become a separate Ruby interpreter. So they were pretty limited in the syntax available to them.
- cheez 6y agoI'm not sure a separate interpreter is necessary but a preprocessor could remove the notations perhaps.
- deleted 6y ago[deleted]