[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: expressions vs. statements

Paul Graham <paulgraham@yahoo.com> writes:

> This is actually a question people on this list might
> have interesting opinions about.  Does distinguishing 
> between expressions and statements buy you anything in 
> expressive power? 

AFAIK the statement/expression's goal is strictify the syntax. 
The drawback is an expressivity loss.

MLs (caml,haskell...) do not need this restriction since the type checking
catch those errors (error messages may not be as good though).
But for this, you can't ignore return values.

(advertising: http://merd.net/slides/mgp00010.html :)