mietek / epigram2

Mirror of Epigram 2, by Conor McBride, et al.
https://code.google.com/p/epigram
MIT License
47 stars 7 forks source link

Syntax for accesing nested tuples #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Nowadays, if you have an element x : Sig ( A ; B ; C ; D ), you need to
play a very childish game:
 * get A by x !
 * get B by x - !
 * get C by x - - !
 * get D by x - - - !

One could have: 
 * "x -3" for "x - - -"
 * "x !3" for "x - - - !"

I suggested "char *x = String[4];" but that was rejected :-)

Original issue reported on code.google.com by pedag...@gmail.com on 6 Jun 2010 at 12:59