From 499ab714998c40e70947433b2d26508483907952 Mon Sep 17 00:00:00 2001 From: "David A. van Leeuwen" Date: Thu, 10 Nov 2016 14:46:33 +0100 Subject: [PATCH] Add deprecation comment in show.jl and deprecation item in NEWS.md --- NEWS.md | 2 ++ base/show.jl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 998a191a167677..47bda8641d930e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -66,6 +66,8 @@ Deprecated or removed * `is` has been deprecated in favor of `===` (which used to be an alias for `is`) ([#17758]). + * infix operator `$` has been deprecated in favor of infix `⊻` or function `xor()` ([#18977]). + Julia v0.5.0 Release Notes ========================== diff --git a/base/show.jl b/base/show.jl index 2101c478e0e0a9..db23b39ab45770 100644 --- a/base/show.jl +++ b/base/show.jl @@ -449,7 +449,7 @@ const uni_ops = Set{Symbol}([:(+), :(-), :(!), :(¬), :(~), :(<:), :(>:), :(√) const expr_infix_wide = Set{Symbol}([ :(=), :(+=), :(-=), :(*=), :(/=), :(\=), :(^=), :(&=), :(|=), :(÷=), :(%=), :(>>>=), :(>>=), :(<<=), :(.=), :(.+=), :(.-=), :(.*=), :(./=), :(.\=), :(.^=), :(.&=), :(.|=), :(.÷=), :(.%=), :(.>>>=), :(.>>=), :(.<<=), - :(&&), :(||), :(<:), :(=>), :($=), :(⊻=)]) + :(&&), :(||), :(<:), :(=>), :($=), :(⊻=)]) # `$=` should be removed after deprecation is removed, issue #18977 const expr_infix = Set{Symbol}([:(:), :(->), Symbol("::")]) const expr_infix_any = union(expr_infix, expr_infix_wide) const all_ops = union(quoted_syms, uni_ops, expr_infix_any)