From dde74deaab23717d5e052931aca0f44691504335 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Fri, 15 Jul 2011 13:45:55 -0700 Subject: [PATCH] Tweak comment for map2pro. --- lib/bud/rewrite.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bud/rewrite.rb b/lib/bud/rewrite.rb index 273e6e59..5469f8d9 100644 --- a/lib/bud/rewrite.rb +++ b/lib/bud/rewrite.rb @@ -115,7 +115,9 @@ def do_rule(exp) drain(exp) end - # Look for top-level map on a base-table on rhs, and rewrite to pro + # We want to rewrite "map" calls on BudCollections to "pro" calls. It is hard + # to do this accurately (issue #225), so we just replace map calls liberally + # and define Enumerable#pro as an alias for "map". def map2pro(exp) if exp[1] and exp[1][0] and exp[1][0] == :iter \ and exp[1][1] and exp[1][1][1] and exp[1][1][1][0] == :call