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

Tuple expression for .to(def) #1205

Open
ssalbdivad opened this issue Nov 16, 2024 · 0 comments
Open

Tuple expression for .to(def) #1205

ssalbdivad opened this issue Nov 16, 2024 · 0 comments

Comments

@ssalbdivad
Copy link
Member

There is an existing tuple expression for morphs (using "=>"), but it accepts a function as the second param.

.to is a helpful sugar that allows providing a validated definition, but there's no way to provide a validated definition to the expression, which could be helpful especially for inlining defs in a scope.

I'd like to determine what that would look like- either an extension of "=>" with an alternate index 2 shape letting us know it's a definition, or a new operator.

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

No branches or pull requests

1 participant