Skip to content

Commit e24df22

Browse files
committed
Add deprecation comment in show.jl and deprecation item in NEWS.md
1 parent 8444b3a commit e24df22

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
@@ -68,6 +68,8 @@ Deprecated or removed
6868

6969
* `num` and `den` have been deprecated in favor of `numerator` and `denominator` respectively ([#19233]).
7070

71+
* infix operator `$` has been deprecated in favor of infix `` or function `xor()` ([#18977]).
72+
7173
Julia v0.5.0 Release Notes
7274
==========================
7375

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)