
10 Dec
2003
10 Dec
'03
4:46 p.m.
G'day all.
Quoting Henk-Jan van Tuyl
So far I have seen only one rule for Good Coding Practice in Haskell: Do Not Use n+k Patterns. I hope someone can give some directions, how to avoid known pitfalls (especially Space Leaks).
Here are a few rules of thumb: - Know what data is "transient" and what data is "persistent". - Persistent data should be fully evaluated where possible. - Transient data should not have multiple consumers if possible. - Use large CAFs sparingly. Also good: http://users.aber.ac.uk/afc/stricthaskell.html Cheers, Andrew Bromage