Difference between revisions of "Talk:Performance/Strictness"
Jump to navigation
Jump to search
SitdoMracl (talk | contribs) (http://labooth.strefa.pl/sitemap.htm) |
(removed) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | I removed the following: |
||
− | [domain|http://labooth.strefa.pl/sitemap.htm] [[http://labooth.strefa.pl/sitemap.htm domain]] [http://labooth.strefa.pl/sitemap.htm|domain] ((http://labooth.strefa.pl/sitemap.htm domain)) [[http://labooth.strefa.pl/sitemap.htm | domain]] "domain":http://labooth.strefa.pl/sitemap.htm [aikibudo montreal|http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html] [[http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html aikibudo montreal]] [http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html|aikibudo montreal] ((http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html aikibudo montreal)) [[http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html | aikibudo montreal]] "aikibudo montreal":http://haschucka.interfree.it/news-aikibudo-montreal-20081124.html [new york city charter bus|http://virosaur.strefa.pl/topic545.htm] [[http://virosaur.strefa.pl/topic545.htm new york city charter bus]] [http://virosaur.strefa.pl/topic545.htm|new york city charter bus] ((http://virosaur.strefa.pl/topic545.htm new york city charter bus)) [[http://virosaur.strefa.pl/topic545.htm | new york city charter bus]] "new york city charter bus":http://virosaur.strefa.pl/topic545.htm [nerds lightning bolt video|http://lachiacn.ifrance.com/page994.html] [[http://lachiacn.ifrance.com/page994.html nerds lightning bolt video]] [http://lachiacn.ifrance.com/page994.html|nerds lightning bolt video] ((http://lachiacn.ifrance.com/page994.html nerds lightning bolt video)) [[http://lachiacn.ifrance.com/page994.html | nerds lightning bolt video]] "nerds lightning bolt video":http://lachiacn.ifrance.com/page994.html [http|http://fixpasxbu.ifrance.com/sitemap.html] [[http://fixpasxbu.ifrance.com/sitemap.html http]] [http://fixpasxbu.ifrance.com/sitemap.html|http] ((http://fixpasxbu.ifrance.com/sitemap.html http)) [[http://fixpasxbu.ifrance.com/sitemap.html | http]] "http":http://fixpasxbu.ifrance.com/sitemap.html |
||
+ | <blockquote>NB. do not do this if the expression on the right of $! is a variable - that just wastes effort, because it does not eliminate a suspension. The only reason to do this would be if you were eliminating a space leak.</blockquote> |
||
+ | because |
||
+ | <pre-haskell> |
||
+ | test = let |
||
+ | x = undefined |
||
+ | in (const 0) $! x |
||
+ | </pre-haskell> |
||
+ | yields exception and substituting ($) for ($!) yields 0. So ($!) does eliminate a suspension. |
||
+ | --[[User:Beroal|beroal]] 16:58, 16 June 2010 (UTC) |
Latest revision as of 16:58, 16 June 2010
I removed the following:
NB. do not do this if the expression on the right of $! is a variable - that just wastes effort, because it does not eliminate a suspension. The only reason to do this would be if you were eliminating a space leak.
because <pre-haskell> test = let
x = undefined in (const 0) $! x
</pre-haskell> yields exception and substituting ($) for ($!) yields 0. So ($!) does eliminate a suspension. --beroal 16:58, 16 June 2010 (UTC)