|
|
|
|
|
by mikekchar
4038 days ago
|
|
> Actually, if you were really reading "the way a computer parses it", you'd ignore whitespace completely. I write a lot of coffeescript ;-) Joking aside, on my current project we elide the parentheses when making function calls with arguments. So: myfunc(foo)
myfunc (foo) ->
is an important difference when I'm reading the code. If you write: myfunc (foo) ->
it means the same thing, but it completely throws me for a loop because I have to look ahead too far. So you are right, I don't look at it the way the interpreter does. I'm inferior and can only handle a grammar with a single look ahead ;-) |
|