2 ms·
> Except it's not trivial, it's not 'free' - it adds noise to the code base and the idea it will eliminate all typing bugs is ludicrous. Except it is trivial.
by geezerjay 10y ago
> Except it's not trivial, it's not 'free' - it adds noise to the code base and the idea it will eliminate all typing bugs is ludicrous.
Except it is trivial. Just add the type declaration like it says in the PEP. There. Problem solved. Who in their right mind makes a fuss for such a trivial thing?
> That's one of the reasons why the average Java program is 2x as long as an equivalent python program.
That's a ridiculous thing to say, and is entirely oblivious to the issue of boilerplate code that is mandatory in Java.
> No, not obviously. Are Java programs easier to read than python thanks to their explicit variable declarations and tendency towards verbosity?
You're trying to misrepresent a personal (and miss-guided) opinion that you formed on a particular programming language as being representative of a single issue.
If your argument was sound and remotely rational, you would've pointed something in the PEP to discuss the merits of the PEP. Instead, you invent problems where there are none by making up stuff regarding an entirely different programming language.
It sounds like you're very opinionated about something you clearly have no ground to criticize or comment on. Therefore it's pointless to continue with this discussion.
- crdoconnor 10y ago>Except it is trivial. Just add the type declaration like it says in the PEP. For every single variable declaration. This will increase the length of your program. >That's a ridiculous thing to say, Are you asserting that program length will not go up when adding explicit types? That seems a peculiarly indefensible position. >You're trying to misrepresent a personal (and miss-guided) opinion that you formed on a particular programming language as being representative of a single issue. Lack of verbosity is one of python's main strengths. >If your argument was sound and remotely rational, you would've pointed something in the PEP to discuss the merits of the PEP. Which I did which you would have picked up on if you were remotely reading what I was actually saying: it picks up type errors that would otherwise not be caught. It does that at a cost: longer code that does the same thing. You seem to fail to understand that this is a trade off. > Therefore it's pointless to continue with this discussion. Agree about that.