Another thing I like about Python is that any statement line that has
some lines underneath, such as if or class, end with a ":". I wonder
if this could be part of a "nut" standard library, if it is ever
created. An example like your test case:
class TestNut extends NuTestCase is:
- testTimes is:
set sum 0
10 times:
lambda (i) do:
set sum (+ sum i)
assert_equal 45 sum
Readability is a winner!
Chris
> --
> You received this message because you are subscribed to the Google Groups
> "Programming Nu" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/programming-nu/-/ti34Ze31y98J.
> To post to this group, send email to program...@googlegroups.com.
> To unsubscribe from this group, send email to
> programming-n...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/programming-nu?hl=en.
-jwr
> --
> You received this message because you are subscribed to the Google Groups "Programming Nu" group.