Skip to content

Commit 470dfa6

Browse files
Only values, not variables, have types... (#36824)
Co-authored-by: Stefan Karpinski <stefan@karpinski.org>
1 parent e059758 commit 470dfa6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/src/manual/types.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ up front are:
4040
* There is no meaningful concept of a "compile-time type": the only type a value has is its actual
4141
type when the program is running. This is called a "run-time type" in object-oriented languages
4242
where the combination of static compilation with polymorphism makes this distinction significant.
43-
* Only values, not variables, have types -- variables are simply names bound to values.
43+
* Only values, not variables, have types -- variables are simply names bound to values, although for
44+
simplicity we may say "type of a variable" as shorthand for "type of the value to which a variable refers".
4445
* Both abstract and concrete types can be parameterized by other types. They can also be parameterized
4546
by symbols, by values of any type for which [`isbits`](@ref) returns true (essentially, things
4647
like numbers and bools that are stored like C types or `struct`s with no pointers to other objects),

0 commit comments

Comments
 (0)