News for hackers. Stuff that matters.
Re:Why Use F#? by kod on Thursday December 13, 2018 @01:27PM (#18674705)
Sounds like you are confused about what @tailrec does.

@tailrec is not necessary to enable tailcalls.

All the annotation does is error if a function is not able to be optimized for tail calls.

The (attempt at) optimization takes place either way, you don't need the annotation unless there's some doubt in your mind.

There are no comments on this comment yet.