Simplify comprehensions for optional fields #2283
istvan-andrasi
started this conversation in
Proposal
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm playing with wrapping docker commands (
build
,volume
/secret
/config
create
/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
configs
andsecrets
)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