Re: Suggested magic for a .. b

2010-07-28 Thread Chris Fields
On Jul 28, 2010, at 1:37 PM, Mark J. Reed wrote:

 On Wed, Jul 28, 2010 at 2:30 PM, Chris Fields cjfie...@illinois.edu wrote:
 On Jul 28, 2010, at 1:27 PM, Mark J. Reed wrote:
 Can I get an Amen?  Amen!
 --
 Mark J. Reed markjr...@gmail.com
 
 +1.  I'm agnostic ;
 
 Militant?  :)  ( http://tinyurl.com/3xjgxnl )
 
 Nothing inherently religious about amen (or me), but I'll accept
 +1 as synonymous.   :)
 
 -- 
 Mark J. Reed markjr...@gmail.com

Not militant, just trying to inject a bit of humor into the zombie thread that 
won't die.

chris

Re: Suggested magic for a .. b

2010-07-28 Thread Chris Fields
On Jul 28, 2010, at 1:27 PM, Mark J. Reed wrote:

 On Wednesday, July 28, 2010, Jon Lang datawea...@gmail.com wrote:
 Keep it simple, folks!  There are enough corner cases in Perl 6 as
 things stand; we don't need to be introducing more of them if we can
 help it.
 
 Can I get an Amen?  Amen!
 -- 
 Mark J. Reed markjr...@gmail.com

+1.  I'm agnostic ;

chris


Re: Counting characters

2010-01-28 Thread Chris Fields
Would you want to use something else for that, maybe .comb?

From the spec:

'The comb function looks through a string for the interesting bits, ignoring 
the parts that don't match. In other words, it's a version of split where you 
specify what you want, not what you don't want.'

chris

On Jan 27, 2010, at 7:08 AM, Mark J. Reed wrote:

 What does trans return in numeric (+) context?
 
 On Wednesday, January 27, 2010, Carl Mäsak cma...@gmail.com wrote:
 How is character counting done in Perl 6?
 
 In Perl 5, it is `scalar tr/CG//` if I want to count the number of Cs
 plus the number of Gs in a string.
 
 S05 describes tr/// in terms of the .trans function, a handsome but
 very different beast. Specifically, it doesn't seem to have a scalar
 context, with which one could count things.
 
 
 -- 
 Mark J. Reed markjr...@gmail.com



Re: Module naming conventions

2009-06-03 Thread Chris Fields

On Jun 2, 2009, at 5:11 PM, Daniel Carrera wrote:


John M. Dlugosz wrote:

So CPAN6 is basically only going to be for Parrot?


What are you talking about? Did you even read my email? I said that  
a module might be implemented in multiple languages (see Digest::SHA  
VS Digest::SHA::PurePerl) and someone might have both versions  
installed.


Daniel.


Speaking as an almost complete outsider (I'm a bioperl core dev  
writing up a perl6 port), I find the tone of several of these more  
recent posts (re: CPAN6 and module conventions) counterproductive.  
TimToady recently posted about snippiness and 'tensegrity', so I'm not  
the only one sensing it.


chris


Re: References to parts of declared packages

2009-02-12 Thread Chris Fields


On Feb 11, 2009, at 2:46 PM, Carl Mäsak wrote:


Jon (), Jonasthan ():

If we declared, for example:

role A::B {};

Then what should a reference to A be here? At the moment, Rakudo  
treats it
as a post-declared listop, however I suspect we should be doing  
something a

bit smarter? If so, what should the answer to ~A.WHAT be?


I'd go with one of two possibilities:

* Don't allow the declaration of A::B unless A has already been  
declared.

[...]


Please don't go with this former alternative. In a project even of
moderate size like Druid, many packages of type A::B are declared
before the corresponding A package is, for perfectly legitimate
reasons.


Agree completely.  Bio::* currently has the same issue.


* A should be treated as a post-declared package.


Whatever this means, it sounds preferable. :)

// Carl


Agree again.  The latter is definitely preferred.

chris

spaces and transliteration

2008-07-07 Thread Chris Fields
I am working on the transliteration method operator (trans()) for  
Rakudo and wanted to get some input on how character ranges are to be  
used.


Should spaces be ignored in ranges like 'A .. Z'?  Currently the  
implementation I have ignores those spaces but counts any other spaces  
as important, so (using parrot perl6.pbc with my patch):


 say Whfg nabgure Crey unpxre.trans(' a .. z' = '_n .. za .. m',  
'A .. Z' = 'N .. ZA .. M')

Just_another_Perl_hacker

chris


spaces and transliteration

2008-07-07 Thread Chris Fields
I am working on the transliteration method operator (trans()) for  
Rakudo and wanted to get some input on how character ranges are to be  
used.


Should spaces be ignored in ranges like 'A .. Z'?  Currently the  
implementation I have ignores those spaces but counts any other spaces  
as important, so (using parrot perl6.pbc with my patch):


 say Whfg nabgure Crey unpxre.trans(' a .. z' = '_n .. za .. m',  
'A .. Z' = 'N .. ZA .. M')

Just_another_Perl_hacker

chris