in reply to Is there any difference between these two statement?
The only reason I imagine for the first form is when autogenerating code. If a code fragment consists of more than a simple expression, the do-block will always convert that fragment to an expression.
Update: Also see ikegami's advice about list context below!
|
|---|