Re: Naming the method form of s///

2006-08-31 Thread Sage La Torra

On 8/31/06, Mark J. Reed [EMAIL PROTECTED] wrote:


I anticipate typos galore from the near-collision of names between
subst and substr; perhaps replace would be a better name, even
though
it breaks the mnemonic association with s///?



Perhaps the long name substitute would work? While it does loose the
brevity of subst, it's very clear about what it does and has the mnemonic
association with s///.

Sage


Re: A suggestion for a new closure trait.

2006-08-30 Thread Sage La Torra

On 8/30/06, Jonathan Lang [EMAIL PROTECTED] wrote:


Joe Gottman wrote:
 Since a FIRST block gets called at loop initialization time, it seems to
me
 that it would be useful to have a block closure trait, RESUME, that gets
 called at the beginning of every loop iteration except the first. Thus,
at
 the beginning of each loop iteration either FIRST or RESUME but not both
 would get called. Other possible names for this block include REENTER,
 SUBSEQUENT, or NOTFIRST.

So RESUME would be to FIRST as NEXT is to LAST?



It's like the SATs all over again...

Sage


Re: Perl5 - Perl 6 Translations Design Document

2006-06-07 Thread Sage La Torra

Just an update:

I've started coding (in haskell, to be used with Pugs). I've got file input,
I've got a data structure for the AST, now I just have to make them play
nicely together. I'll start implementing translations soon, so any other
corrections would be appreciated.

Thanks to everyone who's already given me corrections, sorry for the
mistakes I made (no more top posting for me).

Sage


Re: Perl5 - Perl 6 Translations Design Document

2006-06-06 Thread Sage La Torra

interpolative context ment the perl 5 side, where the double quotes should
cause interpolation. Maybe not the best phrase to identify it, now that you
mention it.

Sage

On 6/6/06, Aaron Crane [EMAIL PROTECTED] wrote:


Sage La Torra writes:
 http://infohost.nmt.edu/~slatorra/conversionstageone.txt

You say this:

  -Hash in interprative context: %hash - %hash{} (also @{[...]} -
   {...})

Hashes don't interpolate in Perl 5, so that's not an issue (unless I'm
misunderstanding what you meant).  But using {...} instead of @{[...]}
is definitely a good thing.

--
Aaron Crane



Perl5 - Perl 6 Translations Design Document

2006-06-05 Thread Sage La Torra

Hello all,

I'm the student picking up on the translation work lwall started. Since the
perl 5 parser is more or less complete, I've headed straight to the
translation work. I'm going to be taking on the translations a few at a
time, starting with the easiest translations and moving to the more complex.
I've got a design document detailing the first few translations I'll be
handling, and I'd greatly appreciate feedback and advice. Larry already took
a good crack at it, catching a few things I had stupidly thought were
simpler then they are, and now it's ready for general review.

The current version can be found at
http://infohost.nmt.edu/~slatorra/conversionstageone.txt

Any advice/comments/criticism on the document and even ideas on
implementation would be greatly appreciated.

Sage