Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Having to search through source for the argument types of a function is usually an example given in favour of strong typing, not against it.


There are not many reasons to read the code of your dependencies, you will learn a lot doing so. One issue when you work with the compiled code is that the type annotations have been removed, and that type annotations leads to more terse code as it would otherwise become too verbose eg. number:number tends to become n:number and when the type is removed it just becomes n, so you kinda become dependent of your tooling and can't easily just stop using it in favor of something better.


Compiled code doesn't have to be unreadable.

Languages like C and C++ made it readable with debug symbols.

The web stack does the same with source maps. The TypeScript compiler also offers to emit .d.ts files with type information for reuse in other projects.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: