On Fri, Aug 29, 2008 at 1:59 PM, Roman Cheplyaka
<roma@ro-che.info> wrote:
* Johannes Waldmann <waldmann@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?
Also, if positional record notation is a design error, then is it also a design error not to require all arguments to be explicitly associated with named formal parameters at a function call site (e.g. f(x = 1, y = 2, z = 3))?
--
Roman I. Cheplyaka :: http://ro-che.info/
kzm: My program contains a bug. How ungrateful, after all I've done for it.