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 news for new Char broadcasting #30024

Merged
merged 2 commits into from
Nov 26, 2018
Merged

Conversation

bkamins
Copy link
Member

@bkamins bkamins commented Nov 13, 2018

Add a news entry following #29819.

I have also changed one line on Regex from plural to singular (hopefully native speakers will agree).

NEWS.md Outdated
@@ -14,7 +14,8 @@ Language changes
returns a `BigFloat` with precision equal to `precision(BigFloat)` ([#29127]).
* Parser inputs ending with a comma are now consistently treated as incomplete.
Previously they were sometimes parsed as tuples, depending on whitespace ([#28506]).
* `Regex` now behave like a scalar when used in broadcasting ([#29913]).
* `Regex` now behaves like a scalar when used in broadcasting ([#29913]).
* `Char` now behaves like a 0-dimensional array ([#29819]).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this a bit of a strong claim?

julia> A = fill(0);

julia> A[] = 1
1

julia> c = 'a';

julia> c[] = 'b'
ERROR: MethodError: no method matching setindex!(::Char, ::Char)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added information that it is read-only.

@bkamins
Copy link
Member Author

bkamins commented Nov 24, 2018

Good to merge?

@StefanKarpinski StefanKarpinski merged commit ce82406 into JuliaLang:master Nov 26, 2018
@bkamins bkamins deleted the char_news branch November 26, 2018 17:57
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

Successfully merging this pull request may close these issues.

4 participants