partiql / partiql-lang-kotlin

PartiQL libraries and tools in Kotlin.
https://partiql.org/
Apache License 2.0
536 stars 60 forks source link

[sprout] Add warning/`@OptIn` option for sprout-generated interfaces #1405

Closed alancai98 closed 3 months ago

alancai98 commented 3 months ago

Add an option to add an @OptIn and/or warning for directly implementing a scribe-generated interface. We can create a warning similar to IonJava's interface for IonReader.

For context, adding additional functions to an interface (e.g. adding a plan node) is a breaking change. Our goal here is to allow for adding new nodes to the ast or plan without causing a breaking change.

Additional Context