Re:Making Coffeescript’s Whitespace More Significant
by raganwald on Wednesday November 30, 2011 @10:17PM
(#3298142)
Outdented calls use the last value in the column to their left. So:
Never means `first.second`, either `.second` is an error, or it is applied to something above this, such as:
...which becomes:
If such a value can't be found, it's an error. Of interest is the meaning of `.propertyName` in the leftmost column, as in:
I suggest it's an error. As long as you can write:
I don't see the value in
This:
Means `object.property.value`.
[ Parent
| on HN ]
Re:Making Coffeescript’s Whitespace More Significant
by sausagefeet on Thursday December 01, 2011 @08:07AM
(#3299584)
IMHO, Smalltalk got this right using ; rather than whitespace. And it's easier to read.