Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defining and referencing datafaces #3

Open
sdboyer opened this issue Jun 4, 2021 · 0 comments
Open

Defining and referencing datafaces #3

sdboyer opened this issue Jun 4, 2021 · 0 comments
Labels
spec/datafaces Related to the specification of datafaces

Comments

@sdboyer
Copy link
Member

sdboyer commented Jun 4, 2021

The initial pass at datafaces defines them as lists of signals, then declares the world's simplest possible definitions of RED and USE. This immediately leads to two related questions:

  • Who gets to define a dataface?
  • How does a polly package refer to a dataface when implementing it?

The initial pass allows polly itself to define datafaces, but polly packages can't really do so - they can only implement them. This is a bit like only allowing the standard library of a programming language to define interfaces, and clearly has to change.

But, limiting dataface references to only those defined by the "stdlib" has the advantage of making imports quite simple - we can restrict to only importing github.com/pollypkg/polly/schema, and then a pop can just reference the dataface definitions directly (e.g. pollyschema.USE, here)

Need a viable approach here that:

  • Allows datafaces to be defined outside polly itself/stdlib
  • Keeps references sane, ideally without needing to rely directly on CUE package management for arbitrary packages
@sdboyer sdboyer added the spec/datafaces Related to the specification of datafaces label Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec/datafaces Related to the specification of datafaces
Projects
None yet
Development

No branches or pull requests

1 participant