Skip to content

Commit

Permalink
Deprecation of $ in favour of xor
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Nov 14, 2016
1 parent 2534435 commit 7b2a9e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ Currently, the `@compat` macro supports the following syntaxes:

* `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.

* `$` is now `xor` or `` [#18977](https://github.com/JuliaLang/julia/pull/18977).

## New macros

* `@static` has been added [#16219](https://github.com/JuliaLang/julia/pull/16219).
Expand Down
6 changes: 6 additions & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1679,4 +1679,10 @@ if VERSION < v"0.6.0-dev.848"
end
end

# julia#18977
if !isdefined(Base, :xor)
const xor = $
const = xor
end

end # module

0 comments on commit 7b2a9e2

Please sign in to comment.