NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
DL$MT%DF@#(hhh (Score:1)
You know, I keep getting your articles through planet parrot in my RSS reader, and waaay too many of them are you doing this kind of petty bitching about what "some guy" said. I wouldn't care what you say either, but these things are being pumped out through planet parrot (and planet perl), which annoys me greatly.
For what it's worth:
for =$*IN -> $guess {
is a trainwreck. It's the =$* that gets me. I like the ->. I'm OK with the non
Re:DL$MT%DF@#(hhh (Score:1)
I can imagine you'd find it frustrating if people so casually dismissed your work with superficial complaints, especially if their complaints demonstrate little attempt to understand what you're trying to do. Maybe I'm extra sensitive this month from dealing with an underdocumented SOA project with heaps of code generation, WSDL, and EJBs.
Unary prefix
=always iterates over an iterator. The*twigil always indicates a global variable.$*INrepresents standard input. Now that you know enough to read that syntax in individual chunks, is it still line noise?I don't remember when STDIN became
$*IN, but that was a while ago. The others have been in the Synopses for ages; they're pervasive consistencies throughout the language.It took me less than a minute to verify each piece of syntax, starting by typing dev.perl.org into the address bar, clicking a couple of links, and searching in the text of the relevant Synopses, and this is what I don't understand.
Isn't it even faster to look up the documentation for a piece of syntax and read it than compose several snarky messages over several days on a mailing list? There've been dozens of articles about Perl 6 syntax over even the past two years.
I'm sympathetic to the idea that some pieces of syntax have changed, but grabbing a piece of code directly from a Synopsis and complaining that you can't immediately and intuitively grasp every fine point of its meaning is awfully silly. Is that really how most programmers learn to code? Guesswork?
Every character in that example is there for a reason. None of them are random punctuation strewn about. Every character and logical chunk of code there has a meaning, and I believe they're consistent throughout all of Perl 6 and, to people who've used the language or are at least familiar with the consistencies, they make code easier to skim and to understand, like any other form of abstraction.
No one has to agree with me about any of those decisions. There have been several discussions on p6l (and in person) about particular choices of syntax. The syntax has changed in several cases, but there's always careful reasoning behind it in accordance with the design principles of Perl 6. Careful consistency is one of those principles. Immediate, pervasive clarity to Perl 6 novices is not.
Maybe someone else needs to wave the flag of "Don't expect to grok every piece of Perl 6 example code until you start learning the language." If someone did that, I could write instead about the Parrot bugs I fix and the features I add; would that be more interesting to you? (This is a serious question by the way.)
Reply to This
Parent
Re: (Score:1)
Re: (Score:1)
Perl 6 relies on sigils and operators, but our hope is that by gathering and grouping variables such as
$*INand%*ENV(I bet you can guess what that one is) and turning other Perl 5 magic globals into object properties, the conceptual weight of the system is much less. Hopefully at least they'll be easier to look up this way.Unfortunately, some people have trouble reading symbols. I have trouble reading code without judicious vertical whitespace to separate paragraphs, so Python can be a chore. (Is th
Re: (Score:1)
So maybe it's the modern (mis)use of the english language that has conditioned people to
Re: (Score:1)
I have difficulty reading mathematic formulas. The variables keep getting jumbled. If I spent more time with a few formulas, I'd eventually memorize them. Some people are better at words than symbols, and, as programmers, they might find languages with fewer symbols easier to read. That might be the case for joejoe.
Of course, English punctuation is mostly hints anyway. Just like you can represent Koine Greek without aspiration notation, you can represent written or spoken English without punctuation
Re: (Score:1)
I have been usin