Replies: 1 comment
-
Original reply by @myitcv in cuelang/cue#462 (comment) If you will forgive the dialogue of one... @rogpeppe kindly exchanged a few ideas on the topic which led me to the following iteration:
This issue here, however, being that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Originally opened by @myitcv in cuelang/cue#462
Consider the following Go code.
Note that the types
*Command
and*Upload
implement theStep
interface.Running
cue get go
currently (as of 304b02e) produces the following:Notice the
Step
Go interface type is converted to top (_
).This is somewhat problematic because we have lost information about the connection between
Step
,Command
andUpload
types.Ideally
#Step
,#Command
and#Upload
would be generated as:It feels like something like this would be desirable.
As far as I can tell:
#Step
definition disjunction would be limited to that whole-program analysisRegarding point 3, perhaps a special directive declared on the interface type would work?
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions