removing the last traces of half-assignments. Issue #541.

This commit is contained in:
Jeremy Ashkenas
2010-07-29 21:23:49 -04:00
parent 980a663c19
commit b18d7fb550
11 changed files with 36 additions and 41 deletions

View File

@@ -60,8 +60,8 @@ race = ->
race()
# Conditional assignment:
good = or evil
wine = and cheese
good or= evil
wine and= cheese
# Nested property access and calls.
((moon.turn(360))).shapes[3].move({x: 45, y: 30}).position['top'].offset('x')

View File

@@ -12,7 +12,7 @@ class LinkedList
# Create a new node object to wrap the data.
node = data: data, next: null
current = this._head = or node
current = this._head or= node
if this._head isnt node
(current = current.next) while current.next

View File

@@ -46,7 +46,7 @@ LotteryDraw =
ticket_list.each (ticket) ->
score = ticket.score result
return if score is 0
winners[buyer] = or []
winners[buyer] or= []
winners[buyer].push [ticket, score]
this.tickets = {}
winners