Re: [Vala] Vala Journal, Issue #1



Xavier Bestel píše v Po 01. 02. 2010 v 12:24 +0100:
On Mon, 2010-02-01 at 14:44 +0800, Nor Jaidi Tuah wrote:
Coalesce operator (??) is now implemented in master. ;)
https://bugzilla.gnome.org/show_bug.cgi?id=580816

May I suggest adding ??=, as in
x ??= y;

Too bad C# choose ?? as the coalescing operator. GCC already has it and
simply uses the traditional ?: with an empty second argument, like:

      x = y ?: z;


Interesting. I didn't know that.

which is, IMHO, quite easier to understand.


Not really. It's just that you are used to it. There is nothing to
understand about an operator, you simply need to know what it does ;)

      Xav



Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy



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