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

Add deprecation warning for multiple successive semicolons #37168

Merged
merged 10 commits into from
Feb 5, 2021

Conversation

BioTurboNick
Copy link
Contributor

@BioTurboNick BioTurboNick commented Aug 23, 2020

In preparation for future use of multiple semicolons in an array expression to indicate multi-dimensional concatenation (e.g. #33697), this PR implements a deprecation warning. This syntax is currently allowed but has no effect. Trailing semicolons are still ignored.

[1 ; 2] # allowed
[1 ;; 2] == [1 ; 2] # deprecated

But, no one would currently see it due to #35648, unless my suggestion #37164 is implemented.

@JeffBezanson JeffBezanson added deprecation This change introduces or involves a deprecation parser Language parsing and surface syntax labels Aug 28, 2020
src/julia-parser.scm Outdated Show resolved Hide resolved
@JeffBezanson JeffBezanson added the needs news A NEWS entry is required for this change label Aug 28, 2020
@JeffBezanson
Copy link
Member

Thanks, looks good to me. This should have a NEWS entry.

BioTurboNick and others added 2 commits November 19, 2020 15:13
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
@BioTurboNick
Copy link
Contributor Author

@JeffBezanson just saw your suggestion and implemented it. Also added a draft NEWS entry.

@BioTurboNick
Copy link
Contributor Author

I rebased onto the more recent master. Was hoping it would get all tests to pass. I don't think the failures are related though?

@mbauman mbauman removed the needs news A NEWS entry is required for this change label Jan 21, 2021
@JeffBezanson JeffBezanson merged commit 30afc32 into JuliaLang:master Feb 5, 2021
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation This change introduces or involves a deprecation parser Language parsing and surface syntax
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants