• azertyfun
    link
    fedilink
    arrow-up
    6
    ·
    9 months ago

    Every C-inspired language with curly braces (which is a lot of them) that I know uses some variation on K&R/Allman.
    Golang straight up enforces the “K&R” style and doesn’t recognize a curly brace on a new line. I don’t know of a JSON prettifier that doesn’t use “K&R” style either.

    Unless you mean that the Haskell/Lisp styles make more sense in Haskell/Lisp, which, yeah, obviously. Hopefully no-one actually writes C code like that.