Skip to content

Commit f8af0d1

Browse files
authored
Explain the compat workflow for functions (#827)
* Explain the compat workflow for functions * Separate syntax from functions
1 parent 8fa46c0 commit f8af0d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ and then as needed add
5454
@compat ...compat syntax...
5555
```
5656

57-
wherever you want to use syntax that differs in the latest Julia
57+
wherever you want to use _syntax_ that differs in the latest Julia
5858
`master` (the development version of Julia). The `compat syntax` is usually
5959
the syntax on Julia `master`. However, in a few cases where this is not possible,
6060
a slightly different syntax might be used.
6161
Please check the list below for the specific syntax you need.
6262

63+
Note that if you want to use a _function_ `new_f` defined in later Julia versions, it is redefined in Compat (as `Compat.new_f`) and exported, so you don't need to change anything to your code beyond the initial import.
64+
6365
## Compatibility
6466

6567
Features in the development versions of `julia` may be added and released in

0 commit comments

Comments
 (0)