• [^] # Re: c'est moi ou bien...

    Posté par (site web personnel) . En réponse à la dépêche Quelques nouvelles rapides du langage Go. Évalué à 7.

    L'intérêt c'est de ne pas multiplier les syntaxes à apprendre.

    Si je devais concevoir un langage, je préfèrerai:

    array := Array< int >( 1, 2, 3 )
    tuple := Tuple< int, int, string >( 1, 2, "yo" )
    map := Map< int, string >().add( 1, "toto" ).add( 2, "hello" )
    

    à:

    array := int[]{ 1, 2, 3 }
    tuple := %int%int%string( 1, 2, "yo" )
    map := int->string { 1 : "toto, 2 : "hello" }
    

    Ce post est offensant ? Prévenez moi sur https://linuxfr.org/board