My interest is more on using async calls than implementing libraries
that support async calls. It is more close to Jurg's idea.
Studying the framework of GIO async and DBus async, I found complexity
there.
Those two asyncs are already different and if we want to support more
async libraries, the
Hi all,
I would like to start a discussion about a small syntactic sugar addition to
Vala, that would in my opinion slightly improve the situation with
asynchronous code. The following code sample should be self explanatory
about my proposal:
delegate bool HttpResponseCallback (string response);
What about methods that take 2 callbacks?
-- Christian
2008/10/18 Ali Sabil <[EMAIL PROTECTED]>:
> Hi all,
>
> I would like to start a discussion about a small syntactic sugar addition to
> Vala, that would in my opinion slightly improve the situation with
> asynchronous code. The following code
Since it is just syntactic sugar, you are free to pass 2 callbacks as
parameters or put 2 "pseudo-lambda" expressions after the method call.
--
Ali
On Sat, Oct 18, 2008 at 11:09 PM, Christian Hergert <
[EMAIL PROTECTED]> wrote:
> What about methods that take 2 callbacks?
>
> -- Christian
>
> 200
On Sat, 2008-10-18 at 22:57 +0200, Ali Sabil wrote:
> Hi all,
>
> I would like to start a discussion about a small syntactic sugar
> addition to Vala, that would in my opinion slightly improve the
> situation with asynchronous code. The following code sample should be
> self explanatory about my p
I like it. Might get confusing if someone wanted to mix direct
delegates and anonymous ones though.
-- Christian
On Sat, Oct 18, 2008 at 4:14 PM, Yu Feng <[EMAIL PROTECTED]> wrote:
> On Sat, 2008-10-18 at 22:57 +0200, Ali Sabil wrote:
>> Hi all,
>>
>> I would like to start a discussion about a sm