Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Technically Scala does support top-level functions, because a top level singleton object can extend FunctionX[...]. It just doesn't support the short "def" form of declaring them at the top level.


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

Search: