HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Talk:Non-trivial type synonyms

Redfining to "id"

What do you mean by "redefined to be 'id'"? (New to Haskell, though I like it a lot.) Instinctively I dislike the idea of changing things after the code is "stabilized", because code never stabilizes unless because people are afraid to touch it because it's too fragile. I really like the idea of making the type system track units like that... Has anybody worked out the details of a system that would use classes and inheritance to automate the tracking of complex units like Miles/Hour? If I do, I'll probably post it here. --User:DanielKnapp


One possibly valid reason for removing the constructors and selector may be that they clutters the code too much. (I think restricted type synonyms can sometimes fix this better)

-- User:StefanLjungstrand

Retrieved from "http://www.haskell.org/haskellwiki/Talk:Non-trivial_type_synonyms"

This page has been accessed 453 times. This page was last modified 14:56, 30 September 2006. Recent content is available under a simple permissive license.