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

Quoting strings in lists doesn’t work #63

Open
rohkea opened this issue Feb 1, 2013 · 2 comments
Open

Quoting strings in lists doesn’t work #63

rohkea opened this issue Feb 1, 2013 · 2 comments
Assignees

Comments

@rohkea
Copy link

rohkea commented Feb 1, 2013

Example:

'(a ("b" "c" "d") ("e" "f"))

The result is (tested against the http://sibilantjs.info site):

[ "a", [ ""b"", ""c"", ""d"" ], [ ""e"", ""f"" ] ]
@jbr
Copy link
Owner

jbr commented May 24, 2013

I agree this isn't desirable behavior. What would you expect the output to be, in javascript?

@rohkea
Copy link
Author

rohkea commented May 27, 2013

Coming from Scheme, I expected quoted string to be a string. So, I expected something like this:

    [ "a", [ "b", "c", "d" ], [ "e", "f" ] ]

There seems to be no way to distinguish a string from a symbol then, but it seems to be in line with how Sibilant treats symbols (e.g. 'a and '"a" both produce "a").

@ghost ghost assigned jbr May 27, 2013
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

No branches or pull requests

2 participants