-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Hi @codepitbull and thanks for all your amazing work on vertx-lang-scala.
Something I've been looking for years with Vert.x is :
- the ability to reduce noisy code : checking parameter types (if it's not an Integer, return http 400, etc.) automatically (e.g. Spring MVC)
- the ability to generate full Swagger (or else) documentation from the routing description
- having strongly typed information within
RoutingContextlikecontext.getParam("test")should be an Integer if I checked for it before - adding methods "dynamically" (but compile-checked) to RoutingContext if needed (see : https://twitter.github.io/finatra/user-guide/http/filters.html#using-c-t-finagle-http-request-ctx for instance)
At the end of the day, I think Java won't allow such features. I tried a few implementations that mostly use reflection (thus no compile-time checking). I was looking for another way to do so.
I found the akka-http very interesting, and am pretty sure we could be able to build such a thing with Vert.x.
It extensively uses the magnet pattern (which is also very very interesting).
I wanted to see if you were interested in helping me building such a "DSL" kindof. That'd allow Vert.x scala users to work in a very very type safe environment, reducing the need to check parameters at runtime and returning errors manually, and also generating accurate documentation.
Let me know if you have some questions ! Thanks.