4 ms·
> I'd rather see a language become the best $LANGUAGE it can possibly be, for whatever that $LANGUAGE is, than try to bolt things on that pull it away from its
by outworlder 11y ago
> I'd rather see a language become the best $LANGUAGE it can possibly be, for whatever that $LANGUAGE is, than try to bolt things on that pull it away from its core focus.
On the other hand, there are instances where types are useful, even in dynamically typed languages. One of them is optimizations. The job of a compiler gets much easier if it can assume that a given variable will always be, say, an integer and nothing else.
- Touche 11y ago> The job of a compiler gets much easier if it can assume that a given variable will always be, say, an integer and nothing else. Don't use a dynamic language when that sort of thing makes a real difference.
- derefr 11y agoOften the point is that it mostly doesn't, and then in a few rare cases (hot inner loops at scale discovered via profiling) it suddenly does. You can rewrite the inner loop in a different language and call it via FFI... or you can type-annotate it. Which is simpler?
- deleted 11y ago[deleted]