gherkin icon indicating copy to clipboard operation
gherkin copied to clipboard

Adds variadic arguments in apply_primitive

Open vdloo opened this issue 10 years ago • 1 comments
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

vdloo avatar Feb 07 '15 13:02 vdloo

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

vdloo avatar Feb 08 '15 20:02 vdloo