develooper Front page | perl.perl6.language | Postings from March 2009

Dot forms of adjectives

Thread Previous | Thread Next
From:
Richard Hainsworth
Date:
March 15, 2009 01:11
Subject:
Dot forms of adjectives
Message ID:
49BCB824.2000308@rusrating.ru
But I recently read this on irc:

2009-03-12
23:16    pugs_svn    r25809 | lwall++ | This decrease in consistency on 
the syntactic level is offset by an
23:16    pugs_svn    r25809 | lwall++ | increase in consistency on the 
semantic level, as suggested by rouso++.
23:16    pugs_svn    r25809 | lwall++ | (We'd already gotten rid of the 
dot forms of adverbs some time ago,
23:16    pugs_svn    r25809 | lwall++ | for similar reasons.  We just 
didn't quite carry the idea through.)

and then read this:

S03 Changes to Perl5 Operators
...

    if $filename ~~ :e { say "exists" }

is the same as

    if $filename.e { say "exists" }

The 1st form actually translates to the latter form, so the object's 
class decides how to dispatch methods.


Is there an inconsistency here?


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About