Comment

Comment by cgenschwap

You're right the type system isn't really the solution for catching dead code. But compilers can easily check for this, if the language is restricted enough.

The issue with a lot of dynamic languages is things like monkey patching and reflection, which means that functions can be called at runtime but otherwise there is no way of checking beforehand.

Some people swear by this dynamic flexibility and the benefits it brings, but there are some serious downsides in terms of refactoring.

parent cgenschwap 6 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton