ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl6-language
perl6-language
Re: ./method
by John Siracusa other posts by this author
Jun 18 2005 4:52AM messages near this date
Re: ./method | Re: ./method
On 6/18/05 12:23 AM, Adam Kennedy wrote:
>  The reason we ended up at ./method was simply because it was the best
>  suggestion anyone had.

That's what I'm trying to remedy :)

>  It's other advantage is that (except for on nordic keyboards) dot and
>  slash are generally right next to each other, so the expense of using it
>  is two chars and one fingering position, as they would likely be hit by
>  fourth and fifth fingers (for touch typist style) and some other two
>  fingers for the rest of us, and only 1 cm travel for hunt and peck.

As I noted, . and : are also right next to each other.  Yes, there's a
modifier (shift) for one of them, but I didn't see anyone crying when .: was
originally proposed, and .:: is just a double-tap on the 2nd key.  IMO, the
"RSI index" is basically a wash between .: and ./.  The "ugliness" and
"appropriateness" indexes, OTOH, heavily favor .: and .::, IMO.

BTW, I'm still not sure which will be more common, private or public
implicit-invocant method calls.  I assigned .:: to private because it simply
looks "more internal" to me.

>  And I dislike having a THIRD sigil even more than I dislike the second.

Objective-C has some spare characters if you're feeling adventurous :)

    [.method()] # ha, jk
    .-method()
    .@method()

Hm, that last one actually isn't half bad, the mnemonic being "call this
'at' the current object"...or something.  Again, maybe it's not feasible due
to parsing constraints.

How about resurrecting the spirit of the arrow?

    .> method()

That actually looks more "private" to me.  Let's line 'em up again:

      PUBLIC      PRIVATE
    ----------  ----------
    ./method()  .:method()
    .@method()  .:method()
    .> method()  .:method()
    .:method()  .> method()
    .:method()  .::method()

I'm just trying to get some more suggestions out there "on paper," because
it seemed to me that the old thread jumped from ^ to ./ with less
exploration than I'd like.

-John
Thread:
Gaal Yahas
Luke Palmer
John Siracusa
Damian Conway
John Siracusa
David Storrs
Matthew Zimmerman
Juerd
Matthew Zimmerman
Damian Conway
David Storrs
Juerd
Kurt
Jonathan Scott Duff
Juerd
Juerd
Kurt
Juerd
John Siracusa
John Siracusa
Adam Kennedy
Juerd
John Siracusa
Adam Kennedy
John Siracusa
Darren Duncan
John Siracusa
Juerd
Juerd
Darren Duncan
John Siracusa
John Siracusa
John Siracusa
Damian Conway
Abhijit Mahabal
Damian Conway
Patrick R. Michaud
John Siracusa
Larry Wall
Gaal Yahas
Damian Conway
Patrick R. Michaud
Damian Conway
Patrick R. Michaud
Larry Wall
Patrick R. Michaud
"TSa (Thomas Sandlaß)"
Larry Wall

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved