I imagine that this alternate API would provide the kind of compiler checks I’m thinking about:
get("/hello", &HelloController.index/2)
…using capture to pass in an actual function instead of stringly typed values. TBH, I like it - it’s more obvious what get()
is doing.