Re: [Vala] [Bug 590324] Syntax sugar for notifications



Maciej Piechotka wrote:
I tried to contact vala developers other ways but I guess I'm filtered
out by spam filters or something like that.

I'd like to propose a sugar syntax for notifications:

object.property::notify += ...

or

object.notify::property += ...

The second syntax will work with details of signals as well.

The bug report says: "Currently it's rather hard to subscibe to single
change notification."

The current syntax is:

  object.notify["property"] += ...  // deprecated

or

  object.notify["property"].connect (...)

How is this hard?



Best regards,

Frederik



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