Re: Documentaion Details (was: underscores vs hyphens)

2010-04-13 Thread Shawn H Corey

Matthew Walton wrote:

On Mon, Apr 12, 2010 at 1:22 PM, Shawn H Corey shawnhco...@gmail.com wrote:

So, I'll ask again:  Where in the official documentation does it state that
Perl 6 names are case sensitive?


I think it's more important to ask where it says that they aren't.

1) Perl 5 is case sensitive, and the original Apocalypses ran on the
basis of 'if it's not mentioned it's the same as Perl 5'
2) The spec assigns no meaning to identifier characters, it just
allows you to use a certain set of them. They mean nothing to the
language, therefore it has no concept of case to be insensitive about
3) Most popular programming languages are also case-sensitive

Maybe it should be explicitly mentioned somewhere, but I think it's a
reasonable default assumption. Programmers know that
case-insensitivity is a special form of string comparison which
involves lots of extra work, so tend to assume (at least in my
experience) that it's not going to happen unless they actually ask for
it.



You're looking at it from the point of view of experienced programmers. 
 What if the person is a high-school student learning Perl 6 as their 
first programming language?  (And yes, I take the point of view that any 
computer language that a high-school student can not learn is useless.)


It's fine to assume that anyone who reads the Apocalypses is a very 
experienced programmer but when it comes to the official documentation, 
such things should be explicitly stated.  By now, the documentation 
should be reaching its final stages.  Yes, it's a finicky little detail 
but programming is all about getting the finicky little details right.



--
Just my 0.0002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

Eliminate software piracy:  use only FLOSS.


Re: underscores vs hyphens (was Re: A new era for Temporal)

2010-04-12 Thread Shawn H Corey

Darren Duncan wrote:

See http://perlcabal.org/syn/S02.html#Names for your answers.


Thanks for the link but nowhere in it does it state tha Perl 6 names are 
case sensitive.  The best the do is this, which implies it is but 
doesn't state it.


Other all-caps names are semi-reserved. We may add more of them in the 
future, so you can protect yourself from future collisions by using 
mixed case on your top-level packages. (We promise not to break any 
existing top-level CPAN package, of course. Except maybe ACME, and then 
only for coyotes.)


So, I'll ask again:  Where in the official documentation does it state 
that Perl 6 names are case sensitive?



--
Just my 0.0002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

Eliminate software piracy:  use only FLOSS.


Re: underscores vs hyphens (was Re: A new era for Temporal)

2010-04-11 Thread Shawn H Corey

Damian Conway wrote:

Well, if we're not going to try to implement linguistically based
hyphenation/underscoriation rules (and I'd still argue that hyphenating
adjectives to nouns and underscoring everything else isn't exactly
rocket science), then I'd suggest we reconsider a radically different
proposal that was made on this list five years ago:

http://www.mail-archive.com/perl6-language@perl.org/msg22675.html

The relevant suggestion regarding hyphens vs underscores is:

...to allow both characters, but have them mean the same thing.


I was about to say that if hyphens and underscores mean the same thing, 
then why are Perl 6's identifiers case sensitive?  But, you know what, I 
haven't found any documentation stating they are.  Could someone please 
give me the URI in the official documentation where this is stated.  Thanks.



--
Just my 0.0002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

Eliminate software piracy:  use only FLOSS.


Re: Interactive Perl 6 shell

2009-12-29 Thread Shawn H Corey
Juan Madrigal wrote:
 Does Perl6/Rakudo have an interactive perl shell like ruby does with irb?

$ perl -ple '$_=eval'

(In Windows: perl -ple $_=eval )

Enter the command `exit` to end the session.


-- 
Just my 0.0002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.