Version française
Home     About     Download     Resources     Contact us    
Browse thread
Alias and Tuple patterns
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Yann Coscoy <Yann.Coscoy@s...>
Subject: Alias and Tuple patterns

(************************ french *********************************)

Il y a un comportement du parser que je trouve plutot bizarre :

(<pat1>, <pat2> as a, <pat3>)

est lu comme :

(((<pat1>, <pat2>) as a), <pat3>).

Je m'attendrais plutot a  :

(<pat1>,(<pat2> as a),<pat3>).

   Yann Coscoy


(*************************** english *******************************)

The parser has a stange behaviour :

(<pat1>, <pat2> as a, <pat3>)

is understood as :

(((<pat1>, <pat2>) as a), <pat3>).

I was expecting :

(<pat1>,(<pat2> as a),<pat3>).

   Yann Coscoy