gherkin
gherkin copied to clipboard
Adds variadic arguments in apply_primitive
trafficstars
For MOD, DIV, SUB and ADD. See https://news.ycombinator.com/item?id=7058976
Previous behaviour:
(+ 5 10 15) 15 (- 5 10 15) -5 (* 5 10 15) 50 (/ 100 5 10) 20
New behaviour:
(+ 5 10 15) 30 (- 5 10 15) -20 (* 5 10 15) 750 (/ 100 5 10) 2
The join procedure from the core library gets trapped in an infinite loop with this change. Any idea what might be causing this? edit: never mind, found it. Next commit fixes it