Skip to content

Commit 205b260

Browse files
committed
Merge branch 'klaff-patch-1'
2 parents 2f326f7 + bc22430 commit 205b260

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/src/manual/noteworthy-differences.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ For users coming to Julia from R, these are some noteworthy differences:
225225
the function `f(x=rand()) = x` returns a new random number every time it is invoked without argument.
226226
On the other hand, the function `g(x=[1,2]) = push!(x,3)` returns `[1,2,3]` every time it is called
227227
as `g()`.
228+
* In Julia, keyword arguments must be passed using keywords, unlike Python in which it is usually possible
229+
to pass them positionally. Attempting to pass a keyword argument positionally alters the method
230+
signature leading to a `MethodError` or calling of the wrong method.
228231
* In Julia `%` is the remainder operator, whereas in Python it is the modulus.
229232
* In Julia, the commonly used `Int` type corresponds to the machine integer type (`Int32` or `Int64`), unlike in Python, where `int` is an arbitrary length integer.
230233
This means in Julia the `Int` type will overflow, such that `2^64 == 0`. If you need larger values use another appropriate type,

0 commit comments

Comments
 (0)