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

Which elements of -syntax- retain their quotes? #11

Open
matthew-white opened this issue Mar 29, 2014 · 0 comments
Open

Which elements of -syntax- retain their quotes? #11

matthew-white opened this issue Mar 29, 2014 · 0 comments

Comments

@matthew-white
Copy link

This one actually comes up a lot: new programmers get confused about this.

syntax automatically strips quotes from string options. For instance, for this program:

program say
    syntax, this(string)

    display "`this'"
end

the following two commands result in the same output:

say, this("Hello world")
say, this(Hello world)

However, syntax does not strip quotes from string asis options. Further, for syntax anything, it does not strip quotes from anything'`: anything' is like ``0' in this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants