• [^] # Re: langage fonctionnel

    Posté par (site web personnel) . En réponse au journal Ada, langage et ressources. Évalué à 4.

    il gère aussi l'emboitement ?

    Genre

    type t = Plop of integer | Plip of string

    type t2 = Foo of t1 | Foo2 of (t*t)

    let foo t2 =
    match t2 with
    | Foo (Plop i ) -> ..
    | Foo (Plip s) ->…
    | Foo2 (_, tt) -> toto (tt)

    "La première sécurité est la liberté"