Hacker News new | ask | show | jobs
by melolife 1684 days ago
Scala doesn't really have a name for this, it simply permits you to provide a block in lieu of a parenthesized argument list. Given that blocks are expressions:

    val a = { val x = 2; x + 1 }
the syntax you are describing is just a function-valued block.