Hacker News new | ask | show | jobs
by gavinray 1350 days ago
Probably not used to seeing lambdas inside of parens:

  .get("/", ctx -> ctx.result("Hello World"))
Could also be written as

  .get("/") { ctx -> ctx.result("Hello World") }
The second form seems much more common in Kotlin.
1 comments

Yeah, no, he was 100% correct, I was just looking at the wrong snippet. It's been fixed now :)