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

Lambda core form #177

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

countvajhula
Copy link
Collaborator

Summary of Changes

We discussed this in last week's Qi meeting. A couple more thoughts:

Using a lambda in a floe position is likely to be a common syntax error in practice today (although I'm hard pressed to come up with an example where we really should be using a lambda rather than a flow, aside from wanting a different order of effects..). That would seem to support that we should allow this natural tendency by recognizing it as a shorthand way to escape to Racket. On the other hand, it could lull the user into a belief that they are writing expr syntax in this position rather than floe, which may cause confusion if they try to write other Racket forms without escaping them. I'm not too worried myself, but mentioning it in case anyone else has any thoughts on it.

This also removes an unused utility that I noticed was showing as uncovered by tests.

Public Domain Dedication

  • In contributing, I relinquish any copyright claims on my contribution and freely release it into the public domain in the simple hope that it will provide value.

(Why: The freely released, copyright-free work in this repository represents an investment in a better way of doing things called attribution-based economics. Attribution-based economics is based on the simple idea that we gain more by giving more, not by holding on to things that, truly, we could only create because we, in our turn, received from others. As it turns out, an economic system based on attribution -- where those who give more are more empowered -- is significantly more efficient than capitalism while also being stable and fair (unlike capitalism, on both counts), giving it transformative power to elevate the human condition and address the problems that face us today along with a host of others that have been intractable since the beginning. You can help make this a reality by releasing your work in the same way -- freely into the public domain in the simple hope of providing value. Learn more about attribution-based economics at drym.org, tell your friends, do your part.)

This provides a shortcut to what may be the most common use of `esc`
in the surface language, viz. `(esc (λ ...))`.

The change was discussed in a recent meeting on "Designing List
Operations":
https://github.com/drym-org/qi/wiki/Qi-Meeting-Jun-21-2024#a-better-remedy
countvajhula added a commit to countvajhula/qi that referenced this pull request Aug 8, 2024
Use Qi equivalents as lambda is no longer valid in this position (at
least until/unless drym-org#177 is merged).
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

Successfully merging this pull request may close these issues.

2 participants