Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mike_hearn
on May 19, 2017
|
parent
|
context
|
favorite
| on:
Learn Kotlin in Y Minutes
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.
shallot_router
on May 19, 2017
[–]
`->` 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: