News for hackers. Stuff that matters.
Re:CoffeeScript hits 1.0 -- Happy Holidays, HN by jashkenas on Friday December 24, 2010 @06:46PM (#2038251)
CoffeeScript isn't particular about the specific number of spaces, as long as you're consistent. For example:

    book.save
      title: "The Book of the Thousand Nights and One Night"
      length: 45
      chapters: 
        "The Fisherman and the Jinni":       1
        "The Tale Of The Ensorceled Prince": 13
        "The First Kalandar's Tale":         27

Compiles into this JavaScript:

    book.save({
      title: "The Book of the Thousand Nights and One Night",
      length: 45,
      chapters: {
        "The Fisherman and the Jinni": 1,
        "The Tale Of The Ensorceled Prince": 13,
        "The First Kalandar's Tale": 27
      }
    });

There are no comments on this comment yet.