What happened to the "mutable struct" debate?
Simon Ochsenreither
simon at ochsenreither.de
Fri Jan 23 16:17:03 UTC 2015
> If mutable structs are not allowed to be passed by ref, then one is more
> likely to lose writes as the struct is passed through a method chain.
> There's no *necessity* per say, but the danger zone is expanded.
+1.
Not sure why people are eager to repeat a mistake which is deeply regretted by
its inventors. Together with not having statics with class-level generics, it's
one of the few things which are better than .NET.
More information about the valhalla-dev
mailing list