[Issue 5804] map! needs to fail on void functions + I'd like a mapCall function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 24 06:06:04 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5804


Pedro Rodrigues <pdfrodrigues at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pdfrodrigues at gmail.com


--- Comment #2 from Pedro Rodrigues <pdfrodrigues at gmail.com> 2011-04-24 06:02:19 PDT ---
Void functions imply side effects. According to the documentation map! does
lazy evaluation. In my experience, mixing up lazy evaluation with side effects
should be avoided at all costs. That's why I think that map! should be used
with pure functions only and reject promptly void functions.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list