This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
Replies: 2 comments
-
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
-
This discussion has been migrated to cue-lang/cue#462. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
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
-
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