For note, Phoenix is just ‘more’ on plug, it still uses the plug interfaces, plug calls, plug everything, it just adds things like a templating system and websockets an such.
As an aside, I wish Phoenix URL arguments came in the param map via atom keys, where query arguments came in via string keys…
How do you propose to implement this safely without some major macro witchcraft? Namely something lime rewriting function heads so that pattern matches with maps become pattern matches with strings or something like that?
But when Phoenix creates the map for the function head to match, it will have to comvert some strings into atoms. Are you saying this is safe because the url params are static? If so, then I agree.