[CLJS-639] Produce errors when records are initialized incorrectly Created: 27/Oct/13 Updated: 19/Nov/13 Resolved: 19/Nov/13
There are a couple of wrong ways you can use a record initializer that don't produce errors in ClojureScript, just nils:
It would make debugging easier if ClojureScript followed Clojure's example here and gave a useful error immediately in case of the last 2 examples.
|Comment by David Nolen [ 29/Oct/13 6:40 PM ]|
Thanks for the report, these warnings would indeed be nice.
|Comment by David Nolen [ 19/Nov/13 4:41 PM ]|
|Comment by David Nolen [ 19/Nov/13 4:43 PM ]|
Wrong arity constructor issue fixed. Separate ticket need for invoking ClojureScript ctors as functions.