2010年7月17日土曜日

[CP:AMA] 4 Expressions


    "One of C's distinguishing characteristics is its emphasis on expressions-" Mmm... distinguishing from what? Let's take a tiny survey.

    • Assembly Language: It doesn't seem to have expressions.
    • Fortran: sure. Fortran has expressions in its language specification, but its emphasis is on statements.

    So one can say `for those days that C had been developed C's emphasis on expressions, C's emphasis on expressions is its distinguishing characteristics, except for Lisp'.

  • 4.1 Arithmetic Operators
    No new knowledge found.

  • 4.2 Assignment Operators
    The explanation for side effects is great. I finally understand why the assignment in C is thought to have side effects; because it is an operator or isn't an statement.

  • 4.3 Increment and Decrement Operators
    No new knowledge found.

  • 4.4 Expression Evaluation
    No new knowledge found.

  • 4.5 Expression Statements
    `Expression Statements' is somewhat weird term, but its meaning is clear.
    "C has the unusual rule that any expression can be used as a statement."

  • Q & A
    No new knowledge found.


still plodding away.

0 件のコメント: