GoThread
appearance log in
home all local communities
a

aMockTie

@aMockTie@piefed.world

member since 25 Aug 2025 01:49 · modlog

postscomments
  • on Expressions in c/programmer_humor@programming.dev · 28 Sep 2026

    Why waste time doing any matching if wantarray == false? Just do:

    if(!wantarray) { return 1; }

    Before any matching happens, or if you only want one return statement set the value of a variable in if(!wantarray)/elsif(regex) and return that variable at the end.

GoThread · self-hosted threadiverse · instances · modlog · rss · appearance · AGPL-3.0