GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    pistolero (p@fsebugoutzone.org)'s status on Wednesday, 27-May-2026 13:10:37 JSTpistoleropistolero
    in reply to
    • Haelwenn /элвэн/ :triskell:
    • djsumdog
    • Phantasm
    • Junes
    • DulceKennedy
    • SilverDeth
    • Slim Jim
    • CMD
    @lanodan @ElDeadKennedy @Junes @SilverDeth @ceo_of_monoeye_dating @djsumdog @j @phnt I mean, not the postfixed condition but the structure.

    def gcd x, y
    if x < 0 || y < 0; raise ArgumentError, "gcd(#{x},#{y})"; end
    if x == y; return x; end
    if y == 0; return x; end
    if y > x; return gcd(y, x); end
    gcd(x-y, y)
    end

    It's that you can increase invariants as you progress down. You know x-y>=0 because x>y and both are positive by the time you get to the subtraction. You just eliminate case after case as you progress. You replicate that with single-return and you get nesting. (The example is deliberately contrived; it is just that it gives you easy list of conditions.)
    In conversationabout 5 months ago from fsebugoutzone.orgpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.