home.social

#caveatprogrammator — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #caveatprogrammator, aggregated by home.social.

  1. It is not for nothing that mathematics (usually) draws a distinction between operations and relations.

    Some computer programming languages, not so much.
    Here is one thing that can happen, using Python just as a handy example:

    >>> 2 == 1 == 0
    False
    >>> (2 == 1) == 0
    True

    So, not left-associative.

    >>> 0 == 1 == 2
    False
    >>> 0 == (1 == 2)
    True

    And not right-associative, either...

    What do we call it?
    Perhaps "quasi-associative" might fit the bill?
    In any case, "anti-associative", "counter-associative", "dissociative", "non-associative", and "pseudo-associative" don't.

    Note: the above doesn't happen with irritating silly parentheses ⌫⌫⌫ Lisp's prefix notation.

    #CaveatProgrammator
    #ComputerProgramming
    #ProgrammingLanguages