Skip to content

Commit 499ab71

Browse files
committed
Add deprecation comment in show.jl and deprecation item in NEWS.md
1 parent 91e01b1 commit 499ab71

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Deprecated or removed
6666

6767
* `is` has been deprecated in favor of `===` (which used to be an alias for `is`) ([#17758]).
6868

69+
* infix operator `$` has been deprecated in favor of infix `` or function `xor()` ([#18977]).
70+
6971
Julia v0.5.0 Release Notes
7072
==========================
7173

base/show.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ const uni_ops = Set{Symbol}([:(+), :(-), :(!), :(¬), :(~), :(<:), :(>:), :(√)
449449
const expr_infix_wide = Set{Symbol}([
450450
:(=), :(+=), :(-=), :(*=), :(/=), :(\=), :(^=), :(&=), :(|=), :(÷=), :(%=), :(>>>=), :(>>=), :(<<=),
451451
:(.=), :(.+=), :(.-=), :(.*=), :(./=), :(.\=), :(.^=), :(.&=), :(.|=), :(.÷=), :(.%=), :(.>>>=), :(.>>=), :(.<<=),
452-
:(&&), :(||), :(<:), :(=>), :($=), :(⊻=)])
452+
:(&&), :(||), :(<:), :(=>), :($=), :(⊻=)]) # `$=` should be removed after deprecation is removed, issue #18977
453453
const expr_infix = Set{Symbol}([:(:), :(->), Symbol("::")])
454454
const expr_infix_any = union(expr_infix, expr_infix_wide)
455455
const all_ops = union(quoted_syms, uni_ops, expr_infix_any)

0 commit comments

Comments
 (0)