#With(...)
1 messages · Page 1 of 1 (latest)
Yeah, I see what you mean. But I rather have it as a rule (or finding a rule to select) than manually select which types. This way, if tomorrow you add something to the API where this can be useful, you don't have to remember to add it to the list.
By the way, I have a proposal (in draft) that requires codegen to detect simple objects. I see those as types where all fields are non-parametrized and return leafs. Examples: EnvVariable, Label, Port. CacheVolume would qualify because it only has id, which is both non-parametrized and also a leaf. I'm suggesting to not include With() in these simple objects.
That sounds like a good rule to start from!