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

Remove flag syntax #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shawwn
Copy link
Contributor

@shawwn shawwn commented Sep 4, 2018

If we remove flag syntax, we can use Lumen's reader to read most other
dialects of Lisp: Emacs Lisp, Common Lisp, etc. This makes it easier
to implement a compiler backend for them.

The loss of expressive power seems minimal compared to the gain in
flexibility.

@sctb
Copy link
Owner

sctb commented Sep 15, 2018

Hmmm. I'll let this one percolate.

@shawwn
Copy link
Contributor Author

shawwn commented Sep 15, 2018 via email

@shawwn
Copy link
Contributor Author

shawwn commented Sep 17, 2018

In fact, I could update BIND so that it preserves the existing lumen
semantics. That way you could still write

(let ((:pos :len :string) (stream “foo”))
  ...)

I think it's worth getting rid of flag syntax, but messing with BIND is a bad idea. It introduces confusion and makes calling syntax inconsistent with LET bindings.

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