Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Subtract and divide operators accept zero args #505

Open
lassik opened this issue Aug 10, 2020 · 1 comment
Open

Subtract and divide operators accept zero args #505

lassik opened this issue Aug 10, 2020 · 1 comment

Comments

@lassik
Copy link

lassik commented Aug 10, 2020

clj
Clojure 1.10.1

user=> (-)
Execution error (ArityException) at user/eval1 (REPL:1).
Wrong number of args (0) passed to: clojure.core/-

planck
ClojureScript 1.10.597

cljs.user=> (-)
Unexpected error (Error) macroexpanding cljs.core$macros/- at (<cljs repl>:1:1).
Wrong number of args (0) passed to cljs.core$macros/-

Lumo 1.10.1
ClojureScript 1.10.520
Node.js v11.13.0

cljs.user=> (-)
0
@lassik
Copy link
Author

lassik commented Aug 10, 2020

clj
Clojure 1.10.1

user=> (/)
Execution error (ArityException) at user/eval1 (REPL:1).
Wrong number of args (0) passed to: clojure.core//

planck
ClojureScript 1.10.597

cljs.user=> (/)
Unexpected error (Error) macroexpanding cljs.core$macros// at (<cljs repl>:1:1).
Wrong number of args (0) passed to cljs.core$macros//

Lumo 1.10.1
ClojureScript 1.10.520
Node.js v11.13.0

cljs.user=> (/)
##NaN

@lassik lassik changed the title minus (i.e. subtract/negate) operator accepts zero args subtract and divide operators accept zero args Aug 10, 2020
@lassik lassik changed the title subtract and divide operators accept zero args Subtract and divide operators accept zero args Aug 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant