3 ms·
This is why I like Scala's approach so much. It will TCO automatically. If you want to make sure you haven't made a mistake, simply add the @tailrec annotation
by paulddraper 10y ago
This is why I like Scala's approach so much.
It will TCO automatically. If you want to make sure you haven't made a mistake, simply add the @tailrec annotation, and the compiler will give you an error if it can't TCO.
- retrogradeorbit 10y agoThat sounds pretty good! I will check that out.