Mercurial > repos > tabletprog
view samples/recursive_closure.tp @ 68:3a169ebb3224
Change strategy for handling true and false to avoid some initialization order problems and improve performance. Add support for negative integer literals. Update samples to reflect true/false change.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 14 Jul 2012 16:14:01 -0700 |
parents | 93ddb4ad6fcb |
children |
line wrap: on
line source
#{ main <- { foo <- :n { if: n < 10 { true } else: { foo <- :n { n } } foo: n + 1 } print: (string: (foo: 0)) } }