Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S02] delete note on intrinsic hash iterator state
We do try to learn from p5's mistakes. The fact that hashes can be
passed to routines without flattening them into a list means that
intrinsic iterators would cause way too much action at a distance.
  • Loading branch information
moritz committed Apr 9, 2012
1 parent f583892 commit 20e3235
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions S02-bits.pod
Expand Up @@ -14,7 +14,7 @@ Synopsis 2: Bits and Pieces
Created: 10 Aug 2004

Last Modified: 09 Apr 2012
Version: 257
Version: 258

This document summarizes Apocalypse 2, which covers small-scale
lexical items and typological issues. (These Synopses also contain
Expand Down Expand Up @@ -2473,10 +2473,7 @@ C<any> or C<all> semantics.

In numeric context (i.e. when cast into C<Int> or C<Num>), a C<Hash> object
becomes the number of pairs contained in the hash. In a boolean context, a
Hash object is true if there are any pairs in the hash. In either case,
any intrinsic iterator would be reset. (If hashes do carry an intrinsic
iterator (as they do in Perl 5), there will be a C<.reset> method on the
hash object to reset the iterator explicitly.)
Hash object is true if there are any pairs in the hash.

=head2 List sorting

Expand Down

0 comments on commit 20e3235

Please sign in to comment.