[Haskell-cafe] Named field syntax

Roman Cheplyaka roma at ro-che.info
Fri Aug 29 16:59:54 EDT 2008


* Johannes Waldmann <waldmann at imn.htwk-leipzig.de> [2008-08-29 15:39:15+0200]
> > data Test = Test Integer {b::String}
> 
> positional (= unnamed) record notation is a language design error :-)
> and its use should be discouraged. - J.W.

Polluting namespace with unneeded functions should not be encouraged
either. Consider for instance defining datatype for 3x3 matrix.
Would the absence of unnamed record notation make you more happy?

-- 
Roman I. Cheplyaka :: http://ro-che.info/
kzm: My program contains a bug. How ungrateful, after all I've done for it.


More information about the Haskell-Cafe mailing list