@@ -141,9 +141,9 @@ When calling `change_value!(x)` in the above example, `y` is a newly created var
141
141
to the value of ` x ` , i.e. ` 10 ` ; then ` y ` is rebound to the constant ` 17 ` , while the variable
142
142
` x ` of the outer scope is left untouched.
143
143
144
- But here is a thing you should pay attention to: suppose ` x ` is bound to an object of type ` Array `
144
+ However, if ` x ` is bound to an object of type ` Array `
145
145
(or any other * mutable* type). From within the function, you cannot "unbind" ` x ` from this Array,
146
- but you can change its content. For example:
146
+ but you * can* change its content. For example:
147
147
148
148
``` jldoctest
149
149
julia> x = [1,2,3]
@@ -334,8 +334,8 @@ unstable (generic function with 1 method)
334
334
335
335
It returns either an ` Int ` or a [ ` Float64 ` ] ( @ref ) depending on the value of its argument.
336
336
Since Julia can't predict the return type of this function at compile-time, any computation
337
- that uses it will have to guard against both types possibly occurring, making generation of
338
- fast machine code difficult .
337
+ that uses it must be able to cope with values of both types, which makes it hard to produce
338
+ fast machine code.
339
339
340
340
### [ Why does Julia give a ` DomainError ` for certain seemingly-sensible operations?] (@id faq-domain-errors)
341
341
@@ -770,8 +770,9 @@ generate efficient code when working with `Union{T, Nothing}` arguments or field
770
770
To represent missing data in the statistical sense (` NA ` in R or ` NULL ` in SQL), use the
771
771
[ ` missing ` ] ( @ref ) object. See the [ ` Missing Values ` ] (@ref missing) section for more details.
772
772
773
- The empty tuple (` () ` ) is another form of nothingness. But, it should not really be thought of
774
- as nothing but rather a tuple of zero values.
773
+ In some languages, the empty tuple (` () ` ) is considered the canonical
774
+ form of nothingness. However, in julia it is best thought of as just
775
+ a regular tuple that happens to contain zero values.
775
776
776
777
The empty (or "bottom") type, written as ` Union{} ` (an empty union type), is a type with
777
778
no values and no subtypes (except itself). You will generally not need to use this type.
0 commit comments