cue icon indicating copy to clipboard operation
cue copied to clipboard

cue: some deprecation notices suggest other APIs which are also deprecated

Open errordeveloper opened this issue 3 years ago • 2 comments

https://github.com/cue-lang/cue/blob/87408d7d0c61bf6ff2711fd202727639aac97290/cue/build.go#L60-L61 https://github.com/cue-lang/cue/blob/87408d7d0c61bf6ff2711fd202727639aac97290/cue/build.go#L104-L106

errordeveloper avatar May 26 '22 13:05 errordeveloper

I'm not quite sure what the issue/question is here?

cue.Runtime is deprecated, and cue.Instance is being phased, and replaced entirely by cue.Value.

The doc comments you have quoted are not, to my knowledge, visible by virtue of being defined against hiddenRuntime.

So it this perhaps just a code-level clean up you're proposing?

myitcv avatar Jun 02 '22 19:06 myitcv

The doc comments you have quoted are not, to my knowledge, visible by virtue of being defined against hiddenRuntime.

Each of the functions are still exported. I was able to see these in vscode via code completion. I found it hard to follow the recursive deprecation. Are you saying that these functions are not visible at pkg.go.dev or in certiain IDEs?

errordeveloper avatar Jul 04 '22 10:07 errordeveloper