Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

Adds variadic arguments in apply_primitive #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vdloo
Copy link

@vdloo vdloo commented Feb 7, 2015

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 added 2 commits February 7, 2015 13:59
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
Copy link
Author

vdloo commented Feb 8, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant