in reply to Seven good reasons for Perl
Why should you use Perl?
(...) Anyway, I hope Perl 6 will not be too complex. Now Perl has all its advantages, it's quite comprehensive. Make it too complex and the people will turn to other languages. Maybe we need even simplify Perl. But then it's losing its flexibility instead.
- it's compact
- it's sophisticated and helps clarify my thoughts
- it's flexible and more open-minded than certain perlmonks
On the subject of compactness and simplicity vs. complexity: Scheme is, syntactically, insanely compact. (So is Common LISP, MacLISP, and all those other parenthesis-laden languages with lambdas and macros -- real macros, not silly preprocessor text-substitution crap -- and continuations and first-class functions and....) LISPen are comprehensive, flexible, terse, and sophisticated. Add true lazy evaluation to a LISP with real (not hygenic) macros and you probably have the most powerful programming language ever constructed. But everyone's afraid of them: why? My guess is, because they look weird to people trained in C-like languages. It's difficult to write Scheme that looks like C (or Java, or whatever), so moving to Scheme when all you know is procedural programming takes a lot of effort.
Perl 6 doesn't need to be simple (if it did, Larry could just slap a regex special form onto Scheme and call it a day) to be accepted by mainstream hackers: it needs to admit standard procedural programming. I don't know about the rest of the monks, but my first Perl programs looked very much like C (it took me about three months to realize that I could get more done with string interpolation and print than with stdlib-style printfs scattered around my code, and longer to learn how to use foreach-style loops instead of explicit indexing). When you want to get something done now, being able to fall back upon familiar habits is a virtue for the new language.
The bottom line, though, is that languages aren't what make programming hard (although a language that doesn't let you do what you want will make your job harder); programming is intrinsically hard. See also Choose the most powerful language.
--
F
o
x
t
r
o
t
U
n
i
f
o
r
m
Found a typo in this node? /msg me
% man 3 strfry
|
|---|