Let's define 4 different classes of points:
type PointType
x
y
end
mutable struct PointMut
x
y
end
immutable PointImmut
x
y
end
struct PointStruct
x
y
end
What is the difference between PointType
and PointMut
? Why would someone choose one over the other?
Also what is the difference between PointImmut
and PointStruct
?
I tend to believe that they are just synonyms, but I didn't find this stated explicitly, so I wonder if there is a subtle difference hidden somewhere.