After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 625777 - Adding a null-coalescing assignment operator ??=
Adding a null-coalescing assignment operator ??=
Status: RESOLVED DUPLICATE of bug 608904
Product: vala
Classification: Core
Component: Parser
0.9.x
Other All
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-01 19:28 UTC by carlo.teubner
Modified: 2010-08-01 20:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description carlo.teubner 2010-08-01 19:28:44 UTC
Since we have "??", and since we have combined assignment versions of the other major binary operators (+=, *=), it would seem sensible to have a null-coalescing assignment operator.

Perl has similar constructs "||=" and "//=".
Comment 1 zarevucky.jiri 2010-08-01 19:40:13 UTC
This has already been proposed and rejected.
Comment 2 zarevucky.jiri 2010-08-01 19:44:05 UTC
See bug 608904.
Comment 3 carlo.teubner 2010-08-01 20:29:48 UTC
Fair enough.

*** This bug has been marked as a duplicate of bug 608904 ***