Re: Natural Language and Perl 6

2010-08-04 Thread Stephen Weeks
Not long ago, yary proclaimed... > This is getting more and more off topic, but if you want some lojban > pasers, start at > http://www.lojban.org/tiki/tiki-index.php?page=Dictionaries,+Glossers+and+parsers I have a translation of the Lojban grammar in Perl 6 rules sitting around somewhere, possibl

Re: 12 hackers hacking...

2008-12-26 Thread Stephen Weeks
Not long ago, Mark J. Reed proclaimed... > On Thu, Dec 25, 2008 at 1:55 AM, Stephen Weeks wrote: > > This currently works in rakudo: > >for (1..$n).reverse { ... } > > No, it doesn't (r34384) > > for (1..10).reverse { say $^i } > 01 9 8 7 6 5 4 3 2 1 >

Re: 12 hackers hacking...

2008-12-26 Thread Stephen Weeks
Not long ago, Mark J. Reed proclaimed... > What's the consensus on how to do an idiomatic countdown loop? I used > for [1..$n].reverse... This: will work eventually: for $n..1:by(-1) { ... } This currently works in rakudo: for (1..$n).reverse { ... }

Resume from exception

2008-12-15 Thread Stephen Weeks
do { die 'some text'; say 'after the exception'; CATCH { say 'caught the exception'; ...; # what goes here? } } My proposal is to call .resume() on the exception object. Thoughts?

Resume from exception

2008-12-15 Thread Stephen Weeks
do { die 'some text'; say 'after the exception'; CATCH { say 'caught the exception'; ...; # what goes here? } } My proposal is to call .resume() on the exception object. Thoughts?