broken waypoint, but fixed line numbers with the new JS comments

This commit is contained in:
Jeremy Ashkenas
2009-12-23 19:42:18 -05:00
parent 6555473788
commit 60eabf63cf
14 changed files with 730 additions and 344 deletions

View File

@@ -6,4 +6,4 @@ if happy and knows_it
date: if friday then sue else jill.
expensive ||= do_the_math()
expensive ||: do_the_math()

View File

@@ -0,0 +1,22 @@
# Assignment:
number: 42
opposite_day: true
# Conditions:
number: -42 if opposite_day
# Functions:
square: x => x * x.
# Arrays:
list: [1, 2, 3, 4, 5]
# Objects:
math: {
root: Math.sqrt
square: square
cube: x => x * square(x).
}
# Array comprehensions:
cubed_list: math.cube(num) for num in list.

View File

@@ -2,6 +2,6 @@ try
all_hell_breaks_loose()
cats_and_dogs_living_together()
catch error
print( error )
print(error)
finally
clean_up().