Hacker News new | ask | show | jobs
by frankiesardo 1866 days ago
elm-format naturally creates more lines than formatted clj code.

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.

1 comments

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.

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.