Re: r29976 - docs/Perl6/Spec

2010-03-09 Thread Brandon S. Allbery KF8NH
On Mar 9, 2010, at 18:10 , Timothy S. Nelson wrote: Algol 68 is notorious as a failure. Let's hope things are different here. As a programming language, it was a failure, in large part because it was a bit too forward-looking for the available compiler technology. (It's still a bit tou

Re: r29976 - docs/Perl6/Spec

2010-03-09 Thread Larry Wall
On Wed, Mar 10, 2010 at 10:10:29AM +1100, Timothy S. Nelson wrote: : On Mon, 8 Mar 2010, Carl Mäsak wrote: : : >Meanwhile, the uncanny similarities between Perl 6 and Algol 68 : >continue to strike me: : > : > (]): : >] ALGOL 68 [...] was conceived as a succe

Re: r29976 - docs/Perl6/Spec

2010-03-09 Thread Mark J. Reed
I think of p6 as more like the Ada of the 21st century. Whether it was a success or not depends on whom you ask, but it had similar criticisms and delays. And was commissioned to be the US federal govt's answer to Algol 68. Which may not have been a big hit, but it had a profound effect on langu

Re: Functional-style pattern matching

2010-03-09 Thread Timothy S. Nelson
On Tue, 9 Mar 2010, Daniel Ruoso wrote: Em Seg, 2010-03-08 às 12:45 -0800, Little Walker escreveu: I've been looking around to see if there's been any discussion of introducing functional programming-style pattern matching for method/ function dispatch. Could someone point me to any such discu

Re: r29976 - docs/Perl6/Spec

2010-03-09 Thread Timothy S. Nelson
On Mon, 8 Mar 2010, Carl Mäsak wrote: Meanwhile, the uncanny similarities between Perl 6 and Algol 68 continue to strike me: (]): ] ALGOL 68 [...] was conceived as a successor to the ALGOL 60 programming ] language, designed with the goal of a much wider

Re: Functional-style pattern matching

2010-03-09 Thread Daniel Ruoso
Em Seg, 2010-03-08 às 12:45 -0800, Little Walker escreveu: > I've been looking around to see if there's been any discussion of > introducing functional programming-style pattern matching for method/ > function dispatch. Could someone point me to any such discussions? a Tree matching language is o

Re: Functional-style pattern matching

2010-03-09 Thread Larry Wall
On Mon, Mar 08, 2010 at 12:45:44PM -0800, Little Walker wrote: : Hi there, : : I've been looking around to see if there's been any discussion of : introducing functional programming-style pattern matching for method/ : function dispatch. Could someone point me to any such discussions? Why settle

Functional-style pattern matching

2010-03-09 Thread Little Walker
Hi there, I've been looking around to see if there's been any discussion of introducing functional programming-style pattern matching for method/ function dispatch. Could someone point me to any such discussions? I've seen that perl6 is taking on a lot of ideas from the functional world (lazy ev

Re: Functional-style pattern matching

2010-03-09 Thread Matthew Walton
I think the closest things we've got to pattern matching come from a combination of multiple dispatch, where clauses and signature unpacking. I don't know much about the latter, but a where clause can discriminate multiple dispatch variants based on parameter values rather than just the type, so yo

Re: built-in roles/types routine boundary

2010-03-09 Thread Moritz Lenz
Darren Duncan wrote: > Or actually, there is just one main thing I want to know right now ... > > You have roles that look like they're supposed to match one specific class > each > in particular, such as Boolean for Bool, Integral for Int, etc, ostensibly in > case users want to declare their