Re: [Vala] Vala Journal, Issue #1
- From: Xavier Bestel <xavier bestel free fr>
- To: Jiří Zárevúcky <zarevucky jiri gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Vala Journal, Issue #1
- Date: Wed, 03 Feb 2010 18:01:31 +0100
On Wed, 2010-02-03 at 17:50 +0100, Jiří Zárevúcky wrote:
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 ;)
Yes, what I mean is that when you know the traditional use of ?:, like
in cond ? val1 : val0, this special case is way more intuitive to
understand. But maybe that's just me.
Xav
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]