Skip to content

Commit 7b2a9e2

Browse files
committedNov 14, 2016
Deprecation of $ in favour of xor
JuliaLang/julia#18977
1 parent 2534435 commit 7b2a9e2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎README.md

+2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ Currently, the `@compat` macro supports the following syntaxes:
124124

125125
* `writemime` has been merged into `show` [#16563](https://github.com/JuliaLang/julia/pull/16563). Note that to extend this function requires `@compat`; see the [Supported Syntax](#supported-syntax) section for more information.
126126

127+
* `$` is now `xor` or `` [#18977](https://github.com/JuliaLang/julia/pull/18977).
128+
127129
## New macros
128130

129131
* `@static` has been added [#16219](https://github.com/JuliaLang/julia/pull/16219).

‎src/Compat.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1679,4 +1679,10 @@ if VERSION < v"0.6.0-dev.848"
16791679
end
16801680
end
16811681

1682+
# julia#18977
1683+
if !isdefined(Base, :xor)
1684+
const xor = $
1685+
const = xor
1686+
end
1687+
16821688
end # module

0 commit comments

Comments
 (0)
Please sign in to comment.