News for hackers. Stuff that matters.
Re:Welcome to C-- (2008) by rabbits77 on Sunday January 23, 2022 @04:26PM (#30050589)
Perl has a similar syntax, it is quite nice

    sub my_funct{
        my($x, $y) = @_;
        #…
        goto &my_funct($x, $y);
    }
In Perl this is convenient because effectively with just adding the goto keyword you reduce all the memory use and risk of blowing your stack (recursion is otherwise super inefficient in Perl).
Re:Welcome to C-- (2008) by shadowofneptune on Sunday January 23, 2022 @07:55PM (#30052341)
It's fascinating to find an idea like that in Perl. Python's developers are hostile to tail-call optimization due to reasons like it complicating debugging.