Re: Fun with junctions (was Sets vs Junctions)

2005-02-17 Thread Damian Conway
Larry wrote: > Actually, I'm thinking we should just go with a single method and > have it merely default to :lang. But .repr is rather ugly. > How 'bout .pretty instead? If we made the language the first optional > argument you could have $x.pretty('Lisp'), $x.pretty('C#'), etc. Hm, maybe we

Re: Junction Values

2005-02-17 Thread Rod Adams
Larry Wall wrote: On Thu, Feb 17, 2005 at 02:18:55AM -0600, Rod Adams wrote: : The simple if is: : : if $x ~~ (1,2,3,4) {...} # parens needed here since , is lower than ~~ : in precedence. That is asking if $x is a list containing 1,2,3,4. Quoting S04: $_ $xType of Match Impli

Re: Fun with junctions (was Sets vs Junctions)

2005-02-17 Thread Larry Wall
On Wed, Feb 16, 2005 at 10:12:43PM -0800, Larry Wall wrote: : On Wed, Feb 16, 2005 at 10:07:34PM -0800, chromatic wrote: : : On Wed, 2005-02-16 at 08:54 -0800, David Wheeler wrote: : : : : > And what of .c#? : : : : It's an alias for .java. : : I'm sorry, but neither of those is powerful enough

Re: Boolean literals

2005-02-17 Thread Matt Diephouse
On Wed, 16 Feb 2005 23:02:25 -0600, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > The latest S12 has it as bool::true and bool::false. > > S03 still indicates that boolean operators return "a standard > boolean value (either 1 or 0)". Are we continuing with 1 and 0 > as the standard boolean v

Re: Boolean literals

2005-02-17 Thread Larry Wall
On Wed, Feb 16, 2005 at 11:02:25PM -0600, Patrick R. Michaud wrote: : On Tue, Feb 15, 2005 at 11:03:09PM -0800, Larry Wall wrote: : > On Wed, Feb 16, 2005 at 02:29:36PM +0800, Autrijus Tang wrote: : > : Just a quick question. The prettyprinter of Pugs (the thing that : > : handles the ".perl" meth

Re: Junction Values

2005-02-17 Thread John Macdonald
On Thu, Feb 17, 2005 at 09:06:47AM -0800, Larry Wall wrote: > Junctions can short circuit when they feel like it, and might in some > cases do a better job of picking the evaluation order than a human. Hmm, yes, there is an interesting interaction with lazy evaluation ranges here. $x = any( 1

Re: Containers vs Objects.

2005-02-17 Thread Larry Wall
On Thu, Feb 17, 2005 at 08:58:21AM +0100, Thomas Sandlaß wrote: : HaloO Larry, : : you wrote: : >That would be cool. I'd like to see our community build up a pool of : >theoreticians who are not allergic to the practicalities of building a : >language for ordinary people to think in. It is my pe

Re: Junction Values

2005-02-17 Thread Larry Wall
On Thu, Feb 17, 2005 at 02:18:55AM -0600, Rod Adams wrote: : The simple if is: : : if $x ~~ (1,2,3,4) {...} # parens needed here since , is lower than ~~ : in precedence. That is asking if $x is a list containing 1,2,3,4. : Same for unless/while/until. And all of this from the entirely useful C

Re: Novice

2005-02-17 Thread David Cantrell
On Wed, Feb 16, 2005 at 01:32:32PM -0600, Jonathan Scott Duff wrote: > On Wed, Feb 16, 2005 at 03:09:24PM -0300, LOGGOS TI wrote: > > Please, where may i download this version ? Is there an usable version > Greetings Roberto! You've stumbled upon the mailing list for the > design of the Perl 6 lan

Re: Junction Values

2005-02-17 Thread Rod Adams
Brent 'Dax' Royal-Gordon wrote: Rod Adams <[EMAIL PROTECTED]> wrote: Larry Wall wrote: That, and we'd like a novice to be able to write given $x { when 1 | 2 | 3 {...} when 4 | 5 | 6 {...} } Or just change C to accept a list of things to compare against, followed by a coderef.