Re: [Vala] Genie syntax for connect



Hello,
                 في ر، 13-10-2010 عند 14:31 -0400 ، كتب Jamie McCracken:
On Wed, 2010-10-13 at 19:51 +0200, Jan Hudec wrote:
That however avoids anonymous functions, which the original question
explicitly asked about.


How does vala syntax handle closures for signals using non-deprecated
style?
Since vala disregards whitespace, it has no reason to change the syntax:

signal_name.connect ( (...) => {
    ...
});

I think genie should have something more flexible than the current
syntax (it can't be passed as a parameter to methods, and special-casing
the connect method of signals won't work because async methods also need
this feature). However, I can't find a good idea for this : even python
does only have the "expression" version of the lambda (and not the
"block" one).

Regards,
Abderrahim




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