|
|
|
|
|
by gf000
103 days ago
|
|
Lambdas have been available for 10+ years. Also, hard disagree on "register" method being simpler. A register method is code, while an annotation is a static declaration, ergo data. The former can happen in a helper function, renaming it from "register" to "path", changing/modifying the parameters, or putting it into some while loop dynamically generating endpoints. At the very extreme it is Turing complete to figure out what endpoints are registered. |
|
The annotations are static, yeah. That's one advantage. I would still rather not do that. A lot of people were happy not to need that anymore in like NodeJS.