Re: muse on Compact Structs, pack/unpack

2008-04-03 Thread Jonathan Scott Duff
Or you could setup pmwiki as a nod to our perl6 compiler pumpking  :-)

In any case, pmwiki is simpler to setup than twiki.

cheers,

-Scott

On Wed, Apr 2, 2008 at 7:45 PM, Larry Wall <[EMAIL PROTECTED]> wrote:

> On Wed, Apr 02, 2008 at 07:03:46PM -0500, John M. Dlugosz wrote:
> > During ANSI/ISO standardization, they basically took every phrase and
> made
> > it more and more exact.  It went from understandable to leagaleze over a
> > period of years, with sentences growing more and more detail.  I could
> > still follow it having come to it gradually.
> >
> > Hypertext could remedy that.
>
> "All problems in computer science can be solved by another level
> of indirection."  -- Butler Lampson
>
> "...except the problem of too many levels of indirection."
>-- Larry's Amendment to Lampson's Law
>
> But yes, it might be about time for hypertexting it.  All but S03 have
> never really undergone a major reorg, and most of them could use it.
> Maybe it's time to set up Twiki on my home machine...
>
> Larry
>



-- 
Jonathan Scott Duff
[EMAIL PROTECTED]


S12 edits on Methods

2008-04-03 Thread John M. Dlugosz
"If you declare an explicit invocant for an Array type using an array 
variable..."
Suggest:
"
The invocant may be given a sigil other than the C<$> "item" sigil using the 
same rules as binding variables to class types as described in S02 under "Names 
and Variables".  For example, if the class does the C role, it may 
be declared with the C<@> "array" sigil.

Naturally, declaring an explicit invocant for an Array type lets you use it in 
the usual way, such as using it in list context to produce its elements.
"

The word "self" is described as a keyword and as a function.  Be stronger about 
defining it.  I suggest,
"
Within the lexical scope of any method, the C keyword behaves as a 
function that returns the invocant in item context.  It is improper to use this 
pseudo-function in any manner other than to call it directly.  In particular, 
an implementation is not required to support taking a Capture to the function.  
Note, however, that you may I it from a closure.

Also note that, as is usual with Perl, the existance of keywords do not 
preclude the use of identifiers with the same name.  Although this is usually 
considerd bad form to make a variable named C<$if>, defining your invocant to 
be C<$self> is not deemed to be in bad taste.  However, defining C<@self> (or 
other sigil forms other than item) could indeed confuse someone reading the 
code, and is discouraged.
"

Per conversation with Audry, I suggest adding the following before "Private 
methods are...".

"
Methods, like any other kind of C, behave as if defined with C by 
default, if no scope modifier is used.  This is described in S06 under "Named 
subroutines".  However, it may be desirable to use the C keyword 
explicitly, as it offers the ability to put the return type before the method 
name, in the C style.
"