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

distinguish {x y} and {x y;} in parser, as with [ ] #25600

Closed
wants to merge 1 commit into from

Conversation

JeffBezanson
Copy link
Member

This is syntax that's parsed but unused. Reading the tea leaves on JuliaLang/LinearAlgebra.jl#450 it seems we'll want to keep the distinction between [x y] and [x y;], so the same should be available for { } (to the extent we can parse it).

Parses {x y} as (braceshcat x y), to match [x y] and hcat. Parses {x y;} as (bracescat (row x y)) to match [x y;] and vcat.

Alternatively, we could make concatenation with { } a parse error until there's an actual use for it.

@JeffBezanson JeffBezanson added the parser Language parsing and surface syntax label Jan 17, 2018
`{x y}` => (braceshcat x y)
`{x y;}` => (bracescat (row x y))
@DilumAluthge DilumAluthge deleted the jb/braceshcat branch March 25, 2021 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser Language parsing and surface syntax
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant