[–] 8jy89hui 3y ago ↗ 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. [–] nitroll 3y ago ↗ But isn't that pretty much the distinction between value and reference types? [–] pizzaknife 3y ago ↗ thats where my comment stems from: reference or value expextations are core to a language's behavior, if those cant be relied upon.... [–] pizzaknife 3y ago ↗ thats a language efficacy/quality problem, not a type problem imho
[–] nitroll 3y ago ↗ But isn't that pretty much the distinction between value and reference types? [–] pizzaknife 3y ago ↗ thats where my comment stems from: reference or value expextations are core to a language's behavior, if those cant be relied upon....
[–] pizzaknife 3y ago ↗ thats where my comment stems from: reference or value expextations are core to a language's behavior, if those cant be relied upon....
4 comments
[ 6.1 ms ] story [ 17.5 ms ] thread