You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
That var makes List a thread unsafe data-type, breaking users expectations, because it's only final values that guarantee that that tl won't be seen as null after the constructor of :: has finished. Users imo expect final values and thread-safety. The ListBuffer trick is cool, but it's not worth it.
Hello,
I was just wondering whether this has ever been discussed for changing in the new implementation, sorry if it has been, but I can't find an issue:
That
varmakesLista thread unsafe data-type, breaking users expectations, because it's onlyfinalvalues that guarantee that thattlwon't be seen asnullafter the constructor of::has finished. Users imo expectfinalvalues and thread-safety. TheListBuffertrick is cool, but it's not worth it.