Re:Mutable value types are evil Sort of
by 8jy89hui on Monday November 14, 2022 @07:51PM
(#33603699)
Implicit cloning of types is evil. The first example with the mutable object is only surprising because the language decided to pass a copied struct by value instead of by reference.
[ Parent
| on HN ]
Re:Mutable value types are evil Sort of
by nitroll on Tuesday November 15, 2022 @05:30AM
(#33607504)
But isn't that pretty much the distinction between value and reference types?
Re:Mutable value types are evil Sort of
by pizzaknife on Tuesday November 15, 2022 @09:02AM
(#33609259)
thats where my comment stems from: reference or value expextations are core to a language's behavior, if those cant be relied upon....
Re:Mutable value types are evil Sort of
by pizzaknife on Tuesday November 15, 2022 @08:48AM
(#33609091)
thats a language efficacy/quality problem, not a type problem imho