I am doing my first steps in Vapor, the web framework for Swift.
The first piece of code that called my attention was this:
app.get(\"welcome\") { re
This is called trailing closure syntax.
I give a nice rundown of the various syntactic sugars of closures in this answer.
The expanded version of this code would be:
app.get("welcome", { (request: Request) throws -> ResponseRepresentable in return "Hello" })