merits of Lisp vs Python

Juan R. juanrgonzaleza at canonicalscience.com
Wed Dec 13 04:37:07 EST 2006


tim.peters at gmail.com ha escrito:

> FWIW, Python documentation consistently uses the jargon:
>
>     () parentheses
>     {} braces
>     [] brackets
>
> That matches North American conventions, but occasionally confuses an
> international audience (for example, the English call parentheses
> "brackets" or "round brackets").
>
> There's also a long tradition in both mathematics and computer science
> of using "bracket" as a generic term for any syntactic device used in
> pairs.

Brackets are unequal paired syntatic delimiters used for packaging.
Quotations marks "string" or exclamation marks ¡Esto es español! are
used in pairs but not are brackets.

A natural convention is brackets = ( ), [ ], { }, < >

  ( ) parentheses or round brackets
  { } braces or curly brackets
  [ ] box or square brackets
  < > chevrons or angle brackets

A English calling "brackets" or "round brackets" to the parentheses is
doing nothing wrong, but brackets are not parentheses.

In mathematics the braces are also often called brackets and again that
is not wrong.




More information about the Python-list mailing list