What exactly does "strict data and lazy functions" mean? Is it the same as "lazy in spine, strict in leaves"?
-
-
-
It means that every field in your data type is strict, even the spine. Lazy functions are already the default so you don't need to do anything there. the tl;dr is just enable StrictData and GHC will do the rest.
- Još 1 odgovor
Novi razgovor -
-
-
It worth keeping control structures - lazy while keeping data structures strict. It's hard to make a border between two in Haskell, but if you may write Foldable,Traversable,Applicative,Monad - it's likely a control structure. Otherwise you may end up withhttps://gist.github.com/klapaucius/1405389/48302e5ebff3494c96fb8786b524cfc8163c80e0 …
-
Yes for streaming or infinite structures you do need some laziness. I think these cases are much less common, especially in application code, than regular data structures. Which is why I say default to strict. Make an explicit decision to use laziness when you need it.
- Još 2 druga odgovora
Novi razgovor -
-
-
Great job on your blog posts!
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.