1. 16
  1.  

  2. 9

    Ocaml uses 0o for octal. Seem consistent and works well enough.

    1. 4

      Common Lisp uses #o as a prefix, e.g. #o0, which seems fine too.

    2. 7

      “Considered Harmful” Essays Considered Harmful: https://meyerweb.com/eric/comment/chech.html

      1. 7

        When was the last time you productively used an octal number-representation?

        Whenever I terminate a C string with a null character.

        1. 1

          I’m curious, why do you need octal for that? 0, 0x0, 0b0, and 00 all act the exact same, don’t they?

          1. 2

            It’s a joke, because 0 is an octal literal.

        2. 6

          I think it’s unlikely a future C standard will drop the 0 prefix.