Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
List can't be Tuple
We can't afford to have WHICH based on all the elements of List, for two
reasons: it's slow, and its .elems is forcing eagerness that causes the
self-reference check to bring on heat-death of the universe.
  • Loading branch information
TimToady committed Sep 4, 2015
1 parent 62e17b4 commit 17411ef
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/core/List.pm
Expand Up @@ -615,12 +615,6 @@ my class List does Iterable does Positional { # declared in BOOTSTRAP
self.new(|c);
}

multi method WHICH(List:D:) {
$!WHICH //= self.^name
~ '|'
~ (^self.elems).map( {'(' ~ self[$_].VAR.WHICH ~ ')'} ).join;
}

method is-lazy() {
if $!todo.DEFINITE {
$!todo.reify-until-lazy();
Expand Down

0 comments on commit 17411ef

Please sign in to comment.