This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-17
Channels
- # admin-announcements (4)
- # boot (93)
- # cider (4)
- # cljsrn (61)
- # clojure (137)
- # clojure-austin (2)
- # clojure-brasil (2)
- # clojure-dev (11)
- # clojure-dusseldorf (10)
- # clojure-greece (245)
- # clojure-russia (37)
- # clojure-spec (60)
- # clojure-taiwan (1)
- # clojure-uk (24)
- # clojurescript (36)
- # cursive (18)
- # datomic (20)
- # emacs (20)
- # funcool (1)
- # hoplon (29)
- # jobs (1)
- # keechma (1)
- # lein-figwheel (1)
- # leiningen (1)
- # off-topic (3)
- # om (10)
- # om-next (1)
- # onyx (60)
- # other-languages (14)
- # planck (26)
- # random (3)
- # re-frame (21)
- # ring (2)
- # spacemacs (8)
- # specter (56)
- # spirituality-ethics (2)
- # uncomplicate (1)
- # untangled (68)
- # yada (3)
Is there any tool for javascript that keeps human beings sane? For instance one that hints me that this code
"use strict";
function foo(b) {
console.log(b);
}
foo(3, 4);
calls foo with the wrong number of arguments?
I know about typescript and cljs obviously, but I wonder if something for pure javascript exists?@sveri: the arguments declared says nothing about the amount of arguments you can pass to a function in javascript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/length
Funny that there is also Function.length which holds the number of parameters the functions expects
@sveri I'm doing some CoffeeScript atm. In my opinion this language is even worse than JavaScript.
We had a contractor build us some "JS" stuff and they used CoffeeScript. Told us "It's way better than JS!". Having tried to maintain it for a while, we do not agree!!!
A while ago, I convinced a (fairly hostile) team to consense on allowing Coffeescript in a Node.js project. (Naturally, I emphasized disadvantages to balance my advocacy.)