While I'm meant to be doing other things, I just took five minutes to propose a random idea I had to remove `while` as a keyword from Scala. https://github.com/lampepfl/dotty/issues/5440 … Someone tell me if I'm barking up the wrong control structure...
-
-
Replying to @propensive
My main use case for while in scala is to save on object allocation. Will this be less of a problem in dotty?
1 reply 0 retweets 0 likes -
Replying to @rwhitcomb
Yes, though note that I'm not proposing anything which would require changes to anyone's existing code.
1 reply 0 retweets 0 likes -
Replying to @propensive
Yep but could make existing code slower if the internal part of the while loop is saying doing a few million loops?
1 reply 0 retweets 0 likes
Replying to @rwhitcomb
I hope that it would have the same performance as a real while loop in Dotty.
5:01 PM - 13 Nov 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.