Il giorno 06/mar/2014, alle ore 21:50, "Nicola Larosa" <n...@teknico.net> ha scritto:
Un articolo di Neil Brown sul sempre benemerito Linux Weekly News contiene considerazioni interessanti su affinità e divergenze tra Python, Go <http://golang.org/> e Rust <http://www.rust-lang.org/>. (Che poi sembra una gara fra chi sceglie il nome più fesso... ;-) ) Su Go: "While Go offers a lot of functionality, it often seems quite restrictive in how this functionality is accessed. This is reminiscent of the 13th aphorism from the Zen of Python: There should be one — and preferably only one — obvious way to do it. [...] By removing options from the programmer, the language removes the need to make choices and so frees the programmer to focus on the actual functionality that they need." Su Rust: "While Go forces you into a particular mold, Rust lets you build your own mold with enormous freedom. [...] This leaning towards extreme flexibility seems to pervade Rust and is reminiscent of the Perl programming motto: There is more than one way to do it." Philosophy and "for" loops — more from Go and Rust <http://lwn.net/Articles/557073/> Se queste impressioni valgono, e sono ben documentate in questo e altri articoli su LWN dello stesso autore, mi sembra non vi siano dubbi su quale di questi linguaggi presenti maggiori affinità con Python. La programmazione è materia di per sé complicata, mi sembra vitale limitare al minimo velleitarismi e complicazioni inutili. Il senso di onnipotenza nel controllo su una macchina è sempre in agguato: bisogna esserne consapevoli ed esercitare un'umile autodisciplina, per quanto possibile. Quindici anni fa scelsi di investire su Python perché cercavo uno strumento semplice e chiaro. Oggi scelgo di investire su Go perché vi sento la stessa attenzione per la semplicità e la chiarezza, anche a costo di limitare la libertà espressiva. (E anche la firma ha da dire la sua. :-) ) -- che discorso filosofico luciano _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python