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

Because "to" isn't actually syntax at all. It's an infix function that creates a Pair. You can alt-click it in the IDE to go to the definition.



`->` in Scala is also just a method, but I think it's fair to call such things syntax even if they're not true "baked-in" language syntax.




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

Search: