Replies: 1 comment
|
0 replies
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Introduction of
Annotatedparams made function params more logical, but on the other hand longer/more verbose:when you look at that you mostly focus on the "annotated" word, while the actual marker is harder to spot (just cognitively)
Why not make params act like Annotated without the "annotated" word:
this looks way more clear and backward compatible with
y: Annotated[xxx, Form]andy: xxx = Form(...)the implementation is actually very simple
implemented here #9941
All reactions