ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I searched for this thread, trying to figure out where Sergei Steshenko's signature came from.
I have read through a book and some tutorials on PERL, and just a week or so ago started reading "How to Think Like a Computer Scientist: Learning with Python." (I haven't finished it yet.) They both seem to be good languages, but I'm far from being an expert on this subject.
Not being an expert, I would say that PERL seems to me (to put it simply) to be more "heavy-duty" in ways. It seems to me to be more complex, and not just in the syntax.
PERL OOP - and some things about the rest of the language - seems a little messy to me. Not in a permanent sort of way, just in a "this takes a lot of getting used to." sort of way.
Also, I see that Eric Raymond finds Python to be a very good language. http://www.linuxjournal.com/article/3882
And syntax sugar, well, sometimes is really sweet.
But my point is different - languages evolve, so a claim that if a language doesn't [have] a feature it means it doesn't need it is funny.
True as stated. However, I would agree with the statement "If a language doesn't have a feature and the workaround for the lack of that feature is trivial, then the language doesn't need that feature." I've never felt the need for "unless" in Python (or C++, or Java, or ...) because "if not" works just fine, and doesn't even require more keystrokes than "unless".
True as stated. However, I would agree with the statement "If a language doesn't have a feature and the workaround for the lack of that feature is trivial, then the language doesn't need that feature." I've never felt the need for "unless" in Python (or C++, or Java, or ...) because "if not" works just fine, and doesn't even require more keystrokes than "unless".
You are on a dangerous path - you have to demand removing 'for' statement because by definition it is implemented through 'while'.
Or, since 'for' is shorter than 'while', demand removing 'while' statement while leaving 'for', which, actually, is the only looping construct one needs.
A question for Sergei:
You say "Python's catching up." Do you think that in the future Python might be a better language in your opinion than it is now?
--- http://www.python.org/about/success/
You are on a dangerous path - you have to demand removing 'for' statement because by definition it is implemented through 'while'.
I said a trivial workaround. This applies very well in the case of "unless", which can always be easily written as "if not". It takes a little more effort to convert
A question for Sergei:
You say "Python's catching up." Do you think that in the future Python might be a better language in your opinion than it is now?
--- http://www.python.org/about/success/
Yes, why not ?
The point, though, is that Perl 6 is making progress too, and slowly its features even migrate into Perl 5.
I said a trivial workaround. This applies very well in the case of "unless", which can always be easily written as "if not". It takes a little more effort to convert
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.