in reply to OT: Converting some js to Perl

Hi. AFAIK js do not have inlining in c sense. So thats obfucargocult or codegen... https://stackoverflow.com/questions/35426280/function-declaration-as-if-statement-condition

Replies are listed 'Best First'.
Re^2: OT: Converting some js to Perl
by LanX (Saint) on Feb 22, 2018 at 14:30 UTC
    > js do not have inlining in c sense.

    This pattern is so common and most JS engines do so many optimizations behind the scene, that it would really surprise me if this is not already handled .

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Wikisyntax for the Monastery

      Js programmers don't try to game engines. They strive go avoid engine quirks
Re^2: OT: Converting some js to Perl
by gsiems (Deacon) on Feb 22, 2018 at 14:54 UTC

    ++ obfucargocult: my word for the day