Unit unboxed tuples
Tyson Whitehead
twhitehead at gmail.com
Tue Jan 10 16:31:38 CET 2012
On January 8, 2012 23:49:47 wren ng thornton wrote:
> An alternative is to distinguish, say, (# x #) and its spaceful
> constructor (# #) from the spaceless (##); and analogously for the boxed
> tuples, though that introduces confusion about parentheses for boxing vs
> parentheses for grouping.
I think that sounds pretty good. Here is another that occured to me today
(#), (# a #), (# a, b #), (# a, b, c #) ...
If you replace the internal ',' with '#'
(#), (# a #), (# a # b #), (# a # b # c #), ...
you have number of elements = number of '#' - 1.
Cheers! -Tyson
More information about the Glasgow-haskell-users
mailing list