Re: [Vala] Implicit lamdas/closures
- From: "Christian Hergert" <christian hergert gmail com>
- To: "Jürg Billeter" <j bitron ch>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Implicit lamdas/closures
- Date: Tue, 16 Sep 2008 15:46:18 -0700
Speaking of ... throwing exceptions via the yield should also be supported. This would allow for try/catch around async calls.
try {
var result = yield obj.do_something ();
} catch (Error err) {
//
}
On Tue, Sep 16, 2008 at 3:43 PM, Jürg Billeter
<j bitron ch> wrote:
On Tue, 2008-09-16 at 15:39 -0700, Christian Hergert wrote:
> I absolutely love the yield idea, very python-twisted'ish. Lets make
> sure the yield can return a value as well so we can have the
> following:
>
> var value = yield obj.do_something ();
Sure, return values should certainly be possible.
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]