Re:Lessons on Writing JavaScript and React from ClojureScript
by achikin on Saturday May 08, 2021 @09:03PM
(#27092248)
I ask myself is the type system that great if you need to write times more LOC just for the sake of it? More lines lead to more bugs exponentially.
As for the spec - the benefit of it is that you are not forced to add it everywhere. You can cover crucial points of program only and leave the rest uncluttered.
Re:Lessons on Writing JavaScript and React from ClojureScript
by goodoldneon on Saturday May 08, 2021 @11:05PM
(#27092855)
It’s extremely reductive to say “more lines = more bugs”. Are Perl one-liners the most bug-free way to write software?
Types drastically reduce bugs.
Also, you have extra code for types, but also the convenience of a great type system. If you were to add clojure.spec to RWA it would probably be just as verbose.