Skip to content

Instantly share code, notes, and snippets.

@crcx
Last active April 19, 2018 16:17
Show Gist options
  • Save crcx/52b2d961a55c4aba9ec70c77a052587e to your computer and use it in GitHub Desktop.
Save crcx/52b2d961a55c4aba9ec70c77a052587e to your computer and use it in GitHub Desktop.
: choose
i listlist
r choice:false
r choice:true
i line....
d 0
i liadfeca
r choice:false
i re......
@crcx
Copy link
Author

crcx commented Apr 19, 2018

This changes choose (and therefore if and -if) to recognize any non-zero value as TRUE (which is expected to be -1). It'll have a small performance hit, which may be significant if your code uses many conditionals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment