CommonPunctuationComparison

Last edit July 20, 2012
Under Constru

This is a look at punctuation marks used on common programming languages and the pros and cons of each:

String Concatenation

  • "."
    • Con: traditionally used for object and/or array paths

  • "&"
    • Con: can also be used for address referencing

  • "+"
    • Con: Many find it hurts readability because it can be confused with math addition

  • "||"
    • Con: can be confused with logical "OR"

Object/Array Referencing

Name-spaces

  • "::"
    • Con: a bit long if used often. Consider ":"