On Tue, Mar 15, 2005 at 11:04:31PM -0800, Larry Wall wrote: > On Wed, Mar 16, 2005 at 01:30:10PM +0800, Autrijus Tang wrote: > : I wonder if there is a way to expose this trait to the user, > : though... A quick grep did not find anything. Anyone got ideas? > > For the most part we'll delay evaluation with explicit curlies. > In general I don't think we should be encouraging people to write > a lot of delayed evaluation macros that aren't explicitly marked as > thunks with curlies. In fact, we're going the other direction with > grep and map's first argument, and not allowing the bare form of thunk > that Perl 5 allows. Every time you allow bare thunks, you disallow > passing a reference to a thunk instead.
Okay, so strictness hinters like "is delayed" is okay as a parameter trait, but with a warning that they should not be carelessly used? Also, how does that philosophy fit with the bare thunking in array slices, as listed in A05? @3d_slice = @array[ !($_ % 2) ; 0..9:3; ?test($_) ]; Thanks, /Autrijus/
pgpHKGiLj6thr.pgp
Description: PGP signature