-
Notifications
You must be signed in to change notification settings - Fork 3
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
The quoting-related operators should be optionally available in their raw form. #3
Comments
This can be done by using the |
What do you mean by their “raw” form? An example would help. |
Like this:
It would make handling those operators consistently tremendously easier in On Sat, Jan 2, 2016, 18:35 An [email protected] wrote:
|
And after #4, it would be literally trivial. Just making this function, depending on the option, return the two-item list or |
The ``` |
It's not so much mixing concerns. It's making assumptions about how the To get the old behavior from this proposal, you'd simply walk the tree and On Sun, Jan 10, 2016, 14:59 An [email protected] wrote:
|
I've thought about this.
That's a flawed line of reasoning. We could make even fewer assumptions by exposing the entire input string character-by-character to the consumer, but that would make this module redundant. Consumers could then get the "old behaviour" by reimplementing this module. What makes this parser a useful point on the continuum between exposing nothing and exposing everything is that S-expressions are a frequently understood standard; a structure consisting of lists, atoms and strings. The exact way an atom was written (e.g.
Languages that require AST primitives in addition to just atoms, strings and lists are by definition not S-expression-based languages. This is the sacrifice one makes for a simple AST format. We'll just have to live with I feel like the question behind your question here is the currently proposed implementation for anko/eslisp#13 and anko/eslisp#23, which is to reuse the quotes inside the |
@anko I see what you're talking about now. On that note, this is worthy of closing, since you are probably right in that the best way to go for that particular macro is to check against Closing, as this is rather moot now. |
This is complicating anko/eslisp#13 and anko/eslisp#23 majorly.
The text was updated successfully, but these errors were encountered: