Closed untitaker closed 8 years ago
This would be cool to have but Rust doesn't have keyword args like Python does. Do you have any thoughts on how this could be done?
Just pass a hashmap, if you want syntax niceties you can always use a macro I guess.
On Wed, Apr 06, 2016 at 09:59:05PM -0700, Garrett Squire wrote:
This would be cool to have but Rust doesn't have keyword args like Python does. Do you have any thoughts on how this could be done?
You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/iron/router/issues/109#issuecomment-206696573
Flask provides this: http://flask.pocoo.org/docs/0.10/quickstart/#url-building This requires giving each route a unique identifier.
I don't want to hardcode my routes into the application. Is there another established pattern that I am missing?