Hacker News new | ask | show | jobs
by elithrar 4597 days ago
> Looks like a lot of reflection. At that point, I would just stick with express and node. All that magic comes at a cost.

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)

1 comments

There is more. The dependency injection implementation is based on reflection, using the https://github.com/codegangsta/inject package.

See e.g

https://github.com/codegangsta/martini/blob/master/martini.g...

https://github.com/codegangsta/martini/blob/master/martini.g...

Still, the end result is a nice API.