One year of Go

bearophile bearophileHUGS at lycos.com
Sat Nov 13 10:23:20 PST 2010


Kagamin:

> Aren't curly braces the same redundancy as semicolons, serving the same purpose?

The information represented by the curly braces is represented by the indentation levels. The semicolons are not necessary to represent logical nesting, and indeed some Python-style languages avoid them. The semicolons were added by Guido V.R. because an usability test on the ABC language (that's the base for Python) has shown they improve readability, they help the mammals that write the program.

Bye,
bearophile


More information about the Digitalmars-d mailing list