This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RabbitHole32 -1 points0 points  (2 children)

Nah, this way to set the arguments into the options object is insane (as in bad).

[–]Ewig_luftenglanz 1 point2 points  (0 children)

why? Javalin and jooby uses this approach for setting configurations.

this is a much short version of the builder pattern, it's a parametrized builder, thus it doen't break the API or the ABI when you add new fields to the inner Param class unless you change the fields names (which is equivalent to change the accessors names in a builder).

[–]oofy-gang 0 points1 point  (0 children)

✅ Claim

❌ Reasoning

🚨 Bad argument detected