Re: [Vala] Vala Journal, Issue #1
- From: Xavier Bestel <xavier bestel free fr>
- To: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Vala Journal, Issue #1
- Date: Mon, 01 Feb 2010 12:24:33 +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;
which is, IMHO, quite easier to understand.
Xav
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]