This is nice. There are too many gotchas to remember in JavaScript; better to let a liberal compiler translate something nice into the "machine code" that works in all browsers.
(Personally, I always write:
something = {
foo: "bar",
bar: "baz",
}
which works in Firefox, but not IE. A compiler would not be upset when it omits that extra trailing comma. Of course, you can always write:
something = { foo: "bar"
, bar: "baz"
}
But let's face it, that is only not ugly in Haskell.)
(Personally, I always write:
which works in Firefox, but not IE. A compiler would not be upset when it omits that extra trailing comma. Of course, you can always write: But let's face it, that is only not ugly in Haskell.)