Loading ...
Sorry, an error occurred while loading the content.

229Re: [json] Re: Internet Draft

Expand Messages
  • Martin Cooper
    Jan 19, 2006
    • 0 Attachment
      On 1/19/06, Douglas Crockford <douglas@...> wrote:
      >
      > > * In section 2.5 on numbers, there is the statement "Leading zeros
      > are not
      > > allowed as that could lead to confusion". I don't understand why leading
      > > zeros would be confusing, expecially when octal and hex forms are not
      > > supported.
      >
      > In JavaScript, leading zero means octal. If JSON allowed leading zeros
      > that do not indicate octal, then it would not be a subset of
      > JavaScript. JSON seeks to be minimal, portable, and a subset of
      > JavaScript.


      IMHO, this would be a better - and more honest - explanation than just
      saying it's confusing.

      --
      Martin Cooper


      Leading zeros are subject to confusion. The public schools tell us
      > they indicate non-significance in decimal. The C languages tell us
      > they indicate octal. Since they ultimately carry no information, it is
      > best to do away with them.
      >
      >
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >


      [Non-text portions of this message have been removed]
    • Show all 17 messages in this topic