News for hackers. Stuff that matters.
Re:Show HN: I finished v5 of a JVM framework I've spent spen... by gavinray on Monday October 03, 2022 @12:10PM (#33069474)
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.
Re:Show HN: I finished v5 of a JVM framework I've spent spen... by tipsee on Monday October 03, 2022 @12:52PM (#33070156)
Yeah, no, he was 100% correct, I was just looking at the wrong snippet. It's been fixed now :)