[m-users.] Tail recursion optimisation

Volker Wysk post at volker-wysk.de
Mon May 18 15:50:13 AEST 2026


Am Sonntag, dem 17.05.2026 um 19:33 +0200 schrieb Tomas By:
> On Sun, 17 May 2026 16:15:26 +0200, Volker Wysk wrote:
> > I have two mutually recursive predicates, which really need the tail
> > recursion optimisation. Does this [optimisation] also happen when
> > there are two or more predicates involved?
> 
> 
> I believe the answer is `yes'
> 
> https://mercurylang.org/documentation/papers.html#tail_lopstr_lncs
> 
> /Tomas

Thanks for picking that out.

Cheers, 
Volker


More information about the users mailing list