There's one use of reflection[1], and it's to ensure that the argument is a function.
Reflection isn't inherently bad; using it at the drop of a hat is.
[1]: https://github.com/codegangsta/martini/blob/master/martini.g...
[edit]: Looks like I missed the `inject` import (thanks breakpete)
See e.g
https://github.com/codegangsta/martini/blob/master/martini.g...
Still, the end result is a nice API.
There's one use of reflection[1], and it's to ensure that the argument is a function.
Reflection isn't inherently bad; using it at the drop of a hat is.
[1]: https://github.com/codegangsta/martini/blob/master/martini.g...
[edit]: Looks like I missed the `inject` import (thanks breakpete)