Re: Syntax for label

From: Pierre Weis (Pierre.Weis@inria.fr)
Date: Tue Mar 14 2000 - 19:05:22 MET

  • Next message: Pierre Weis: "Re: additions to standard library?"

    > And why not "as", i.e. "t as x", as I explained once in a previous post.
    > I never did get an explanation as to why this wasn't an better solution. It
    > reuses a rarely-used keyword in a perfectly backward-compatible way.

    This is not backward-compatible since ident1 as ident2 is a special
    case of pattern as ident. Hence ident1 as ident2 already has a
    meaning in Caml: it means that you want to write ident2 as an alias
    for ident1.

    Best regards,

    -- 
    Pierre Weis
    

    INRIA, Projet Cristal, http://pauillac.inria.fr/~weis



    This archive was generated by hypermail 2b29 : Tue Mar 14 2000 - 19:24:15 MET