jashkenas/coffee-script — Issue #2098: push to array without initial declaration
Author: ollym
Created: 2012-02-03 17:42:24+00:00
State: open

consider this code:

```
dates = []
while ((next ||= @) < limit)
callback?(next); dates.push new Date next
next.advance step
```
would be nicer to have the `[] =` operator so that:

```
while ((next ||= @) < limit)
callback?(next); dates[] = new Date next
next.advance step
```

Like in PHP