Get rid of try/catch keywords while you're there?
-
-
-
I don't think we have an alternative way of implementing their magic in library code, though... even if we did start using monads for error handling everywhere.
End of conversation
New conversation -
-
-
This Tweet is unavailable.
-
I'm not proposing to remove its functionality... just to implement it in a standard-library method.
End of conversation
-
-
-
My main use case for while in scala is to save on object allocation. Will this be less of a problem in dotty?
-
Yes, though note that I'm not proposing anything which would require changes to anyone's existing code.
- Show replies
New conversation -
-
-
Interestingly, the dotty docs illustrate the use of the inline keyword with an inline def foreach that uses a while loop internally: http://dotty.epfl.ch/docs/reference/inline.html …
-
And dotty inline recursive methods require that the recursion level is compile-time constant. So replacing while with a tailrec combinator would still rely on JIT inlining, which even with graal is problematic for short loops.
End of conversation
New conversation -
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.