I have a bunch of routes that look like this:
and for each one, I have to put in a path UDA to designate how to map
the id to the _id parameter.
I realized that actually, I can delegate this to a different object!
...Or so I thought, but I get this assertion:
Instances may only be returned from parameter-less functions
What I had is something like this:
ItemHandler get(int _id)
itemHandler.id = _id; return itemHandler;
Why does this limitation exist? I'm not even certain it's necessary,
even in the general case where the parameters come from the form data.
It would make writing all my handling code more modular and less
verbose. Is this something that should be supported, even if it's only
for route parameters?