Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I agree on principle, but in practice routers rely on arbitrary strings anyway. I don't see why the verb is not just a part of the route.

In my head it's as if we did this:

    http.Segments("foo", "bar", http.Param("barID"), "baz")
instead of:

    /foo/bar/:barID/baz
Is it sliiiightly safer? Yes. Is it insane? Also yes.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: