Y
Hacker News
new
|
ask
|
show
|
jobs
by
8jy89hui
1309 days 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.
2 comments
nitroll
1308 days ago
But isn't that pretty much the distinction between value and reference types?
link
pizzaknife
1308 days ago
thats where my comment stems from: reference or value expextations are core to a language's behavior, if those cant be relied upon....
link
pizzaknife
1308 days ago
thats a language efficacy/quality problem, not a type problem imho
link