Hacker News new | past | comments | ask | show | jobs | submit login

I 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.



I'm not sure a separate interpreter is necessary but a preprocessor could remove the notations perhaps.


I believe they don't want to just strip out the annotations because Sorbet also does run time type checking. So to get all the features they wanted, they had to either write a new interpreter or use valid Ruby.


OK, take non-ugly syntax, translate to ugly syntax.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: