Hacker News new | past | comments | ask | show | jobs | submit login

> You don't have to use these features if you don't want or need them. Nobody uses 100% of any language's features, and the subset that is used can be very different from person to person. I don't see that as a problem.

The problem is that other people might use those features and you also might have to read the code created by those people.




And what's the problem on having some type hints on some func signatures?) You can read python exactly the same way (with and without type hints)....


It's just one more thing you have to get to learn.

I have the same problem with classes in JavaScript. You can't ignore them and stick to prototypes nor ignore prototypes and stick to classes. What should have been a simplification has turned out to make things more complex.


Unlike ES6 classes, you absolutely can ignore type hints (and they're easy to ignore). In fact they're basically inline comments, and the interpreter ignores them too.


Anyway es6 classes it's just a proper way of doing Oop in js.. the prototypal thing it's so ugly...


The problem for me is other people not using it. When I call another library, there is no type hint and the documentation is poor.

You can only read the code and guess the type yourself.


So just like any other dynamically typed language?




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

Search: