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

Actually I think plug is mostly fine since it only brings in one macro (plug) that isn't an http verb, or http common concept (forward e.g.).

My huge beef with plug is that it creates an implicit conn variable in all of the plug bodies.

But yeah, phoenix is a combination of good choices and some real stinkers, and I did mention it.

Edit: I forgot about match. match "isn't great".



>My huge beef with plug is that it creates an implicit conn variable in all of the plug bodies.

What do you mean? That only happens if you use Plug.Router; otherwise, you have to define a call function that takes the conn as the first argument. You can even go as far as explicitly calling the init functions for each Plug manually. It's init(opts), call(conn, opts) all the way down.


yes sorry, I meant Plug.Router macro bodies. The rest of plug is fine.




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

Search: