make POST blocks more usable

2008-05-27 Thread Moritz Lenz
I skimmed through S06 and I found no convenient way to use the return value of sub/method in it's POST blocks. Since they can (and should) be used (among other things) to check the sub's/method's return value, I'd like to propose that the return value of a sub is given as the argument to POST

Re: assignable mutators (S06/Lvalue subroutines)

2008-05-27 Thread Dave Whipp
TSa wrote: class Length { has Num $.mm is rw = 0; method inch { yield $inch = $.mm * 25.4; self.mm = $inch / 25.4; } } Would you regard that as elegant? That looks functionally incorrect to my eyes: if the caller resumes at the time

Re: assignable mutators (S06/Lvalue subroutines)

2008-05-27 Thread Dave Whipp
TSa wrote: TSa wrote: class Length { has Num $.mm is rw = 0; method inch { yield $inch = $.mm * 25.4; self.mm = $inch / 25.4; } } Would you regard that as elegant? That looks functionally incorrect to my eyes: if the caller resumes

[svn:perl6-synopsis] r14546 - doc/trunk/design/syn

2008-05-27 Thread larry
Author: larry Date: Tue May 27 16:19:34 2008 New Revision: 14546 Modified: doc/trunk/design/syn/S09.pod Log: Cleanup bogus use of adverbs on bare terms Modified: doc/trunk/design/syn/S09.pod == ---

ordinal access to autosorted hashes

2008-05-27 Thread Jon Lang
From S09: The default hash iterator is a property called .iterator that can be user replaced. When the hash itself needs an iterator for .pairs, .keys, .values, or .kv, it calls %hash.iterator() to start one. In item context, .iterator returns an iterator object. In list context, it returns a lazy