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

Pass unprefixed outputs of the same cell #36

Closed
blaggacao opened this issue Feb 26, 2022 · 2 comments
Closed

Pass unprefixed outputs of the same cell #36

blaggacao opened this issue Feb 26, 2022 · 2 comments

Comments

@blaggacao
Copy link
Collaborator

blaggacao commented Feb 26, 2022

Within a same cell, it is awkward to accessor the outputs of that same cell with the cellname's prefix.

inputs.self.packages.<system>.cellname-mypackage
# could become
inputs.cell.packages.<system>.mypackage

inputs.cell thereby has only cell-local meaning.

This avoids much of the magic that a mypackage is all of a sudden accessored as cellname-mypackage, which feels very suspicious in practice.

At the same time, externally the cell-prefixing, which is required for good encapsulation of concerns is preserved.

@blaggacao
Copy link
Collaborator Author

blaggacao commented Feb 26, 2022

That could also eliminate the need for appending .__data for the data clade, since these values would be pre-metadata.

@blaggacao
Copy link
Collaborator Author

Also rename:

  • inputs.self -> inputs.cells
  • inputs.sourceInfo -> inputs.self

... to better reflect their actual scope.

Note: self has only the sourceInfo to block interaction over the global context with other inputs ("inputs shall be fully qualified")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant