Only the use of a block call as statement is possible now.
This a parsing problem, I haven't found out yet how to allow a
block call as expression without requiring ; at the end of both
examples you gave.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Although it looks good on the rhs of an assignment, I'm not
sure about the usage as expression:
bar(foo(){ return 1; }. foo(){ return 5; });
Do you have an example where you to return something from
a block argument call?
Otherwise I suggest limiting it to statements only and rename
it to user defined statement.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=688815
Only the use of a block call as statement is possible now.
This a parsing problem, I haven't found out yet how to allow a
block call as expression without requiring ; at the end of both
examples you gave.
Logged In: YES
user_id=688815
Although it looks good on the rhs of an assignment, I'm not
sure about the usage as expression:
bar(foo(){ return 1; }. foo(){ return 5; });
Do you have an example where you to return something from
a block argument call?
Otherwise I suggest limiting it to statements only and rename
it to user defined statement.
Logged In: YES
user_id=2706
Oh, sure:
ThreadResult<int> result = async { callSomeServer(); return 5; }
ThreadResult<int> result = waitForFirst(
async { return doSomething(); },
async { return doSomethingElse(); }
);