Posted: Fri Aug 25, 2006 3:46 pm Post subject: (No subject)
An unnecessary dichotomy.
Why is there a need for "statements" at all? Certainly expressions that return "unit" or something comparable provide all the same functionality.
Sponsor Sponsor
rizzix
Posted: Fri Aug 25, 2006 3:52 pm Post subject: (No subject)
It's more intuitive.
In a natural language, you have words which compose clauses/phrases which compose statements which compose paragraphs, which finally composes an article.
Similarly, in a strucured language (like C/Java) we have expressions which compose statements which compose blocks, which finally composes a program.
Cervantes
Posted: Fri Aug 25, 2006 4:04 pm Post subject: (No subject)
Granted, statements might be a little more intuitive. But I think it's a pretty poor argument when you consider the power and flexibility that comes with embracing expressions over statements.