pedestal

souenzzo 2025-04-06T14:47:47.627479Z

About pedestal 0.8 new connector abstraction • with-interceptor abstraction is awesome • split "with default interceptores" and "with-routes" in two distinct steps is good • why does with-routes needs to be a macro? Why not make it a simple function?

hlship 2025-04-06T18:06:19.397649Z

with-routes macro is a wrapper around the routes-from macro, which is an important part of a REPL-reloaded approach. Even if you could apply a macro (you can’t), doing so would lock in the routes at the point with-routes was invoked, rather than re-evaluating them on each request when in dev-mode.

hlship 2025-04-06T18:41:57.327669Z

But I’m glad you like it; it’s also a fresh start to carve through all the odd naming of concepts and protocols already present in Pedestal.

souenzzo 2025-04-06T21:20:29.518299Z

btw, routing protocol currently is pretty odd I'd like to have things like context, lazy routes and etc, and it is almost impossible to do with the current stuff