Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Perl6, latest Rakudo bug or error on my part?

by Utilitarian (Vicar)
on Aug 07, 2010 at 16:08 UTC ( #853585=note: print w/ replies, xml ) Need Help??


in reply to SOLVED: Perl6, latest Rakudo bug or error on my part?

Thanks fod

I got it and came here to post when I saw your response, so space is meaningful, how very pythonesque

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."


Comment on Re: Perl6, latest Rakudo bug or error on my part?
Download Code
Re^2: Perl 6, latest Rakudo bug or error on my part?
by chromatic (Archbishop) on Aug 07, 2010 at 20:12 UTC
    how very pythonesque

    Py tho nisn'ttheonl yla nguageinwhichtheappropriate useofwhitespacecontribu testoparsability;t rywritingadowhilel oopinPerl5withoutaspa cesom e t i me.

      Valid point, entertainingly made, and I am entirely sincere in my gratitude for the work you and others have put into Rakudo. It just seems strange, coming from Perl 5. that }else{ isn't parseable as I would expect.

      I spent a very educational weekend however and may even attempt, in my limited way, to contribute to the project.

      print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
        Perl6 use the dot for method invocation and underscore for concatenation!!!!! Please adjust your expectations :)

        In all seriousness, there's a point at which disambiguation in the parser (whether software, hardware, or wetware) is just too much work, and a bit of punctuation makes that pain go away. You can take that too far (and in the case of Python, I have to read very carefully to figure out the relationships of blocks separated by vertical whitespace) but sometimes a little consistency is not a bad thing.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://853585]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-07-03 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (47 votes), past polls