Skip to content

Add deprecation warning for multiple successive semicolons#37168

Merged
JeffBezanson merged 10 commits intoJuliaLang:masterfrom
BioTurboNick:semicolon-warning
Feb 5, 2021
Merged

Add deprecation warning for multiple successive semicolons#37168
JeffBezanson merged 10 commits intoJuliaLang:masterfrom
BioTurboNick:semicolon-warning

Conversation

@BioTurboNick
Copy link
Copy Markdown
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
@JeffBezanson JeffBezanson added the needs news A NEWS entry is required for this change label Aug 28, 2020
@JeffBezanson
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@BioTurboNick
Copy link
Copy Markdown
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