3 ms·
What modern language do you use that doesn't also have a laundry list of warts?
by peteretep 14y ago
What modern language do you use that doesn't also have a laundry list of warts?
- prollyignored 14y agoHonestly, AFAIK only PHP comes with a bigger laundry list. The only python wart I know is no block scope for i in [1,2,3]: print i print i # still visible Only functions introduce lexical scope in Python/JS. JS has the ===, this, undefined The only ruby wart for me is the difference between block/lambda/Proc and perly features. Java/Go/Lua don't turn you into a omlette, with their language features. Nor do they leak memory in XS like perl. C++ is a differnt story. EDIT: Added JS
- sigzero 14y agoThen you don't know anything about Ruby and Python warts. Take yourself out of the conversation please or at Google before you blather.
- hello3 14y agoWhy doesn't he know anything about Python or Ruby warts? I think his complaint about Python is valid. The other wart I would add is Python having a default empty list in a method signature. In successive calls to the function if you modify the list it retains it's value. (The solution is to have it set to None in the method signature). Read http://docs.python.org/3/tutorial/controlflow.html#function-annotations http://docs.python.org/3/tutorial/controlflow.html#function-... section 4.7.1 if you're curious Generally though I'd say Perl has hundreds (or maybe thousands) of warts for every one Python or Ruby has.
- rimantas 14y agoEnlighten us.
- sigzero 14y agoPython has its own wiki about them for one (first Google hit): http://wiki.python.org/moin/PythonWarts http://wiki.python.org/moin/PythonWarts Here is one of the first Google hits for Ruby: http://jgaskins.org/blog/2012/05/16/ruby-warts/ http://jgaskins.org/blog/2012/05/16/ruby-warts/ Every languages has warts. Lots of them.