Skip to content

Remove flag syntax - #192

Open
shawwn wants to merge 1 commit into
sctb:masterfrom
shawwn:2018-09-04/remove-flag-syntax
Open

Remove flag syntax#192
shawwn wants to merge 1 commit into
sctb:masterfrom
shawwn:2018-09-04/remove-flag-syntax

Conversation

@shawwn

@shawwn shawwn commented Sep 4, 2018

Copy link
Copy Markdown
Contributor

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

sctb commented Sep 15, 2018

Copy link
Copy Markdown
Owner

Hmmm. I'll let this one percolate.

@shawwn

shawwn commented Sep 15, 2018 via email

Copy link
Copy Markdown
Contributor Author

@shawwn

shawwn commented Sep 17, 2018

Copy link
Copy Markdown
Contributor Author

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