Simplify comprehensions for optional fields #2283
istvan-andrasi
started this conversation in
Proposal
Replies: 1 comment 3 replies
-
|
We anticipate this syntax more generally as part of the query proposal. |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
I'm playing with wrapping docker commands (
build,volume/secret/configcreate/remove,stack deploy, ...) and I'm quite happy with what I've got so far.For context, my simplified definition is:
The next thing that I'd be happy with is a simplified version of this comprehension: (x2 for
configsandsecrets)I propose that inside comprehensions a trailing
?after a field name in field references can replace the explicit testing for bottom, which would result in:I'd like to scope this to comprehensions only as a first step.
Beta Was this translation helpful? Give feedback.
All reactions