Y
Hacker News
new
|
ask
|
show
|
jobs
by
_gabe_
1465 days ago
At this point you're already writing your own parser to parse the expressions from the strings. Why not cut out the json completely and make it way more readable?
rules = [ x + 1, x % 2 == 1 ]