View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000265 | Ecere SDK | ecere | public | 2009-10-19 20:48 | 2014-07-11 18:22 |
Reporter | joey | Assigned To | |||
Priority | low | Severity | feature | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Summary | 0000265: eC should have the '??' operator | ||||
Description | C# has an operator called the "null-coalescing" operator. It's described in more detail here: http://stackoverflow.com/questions/446835/what-do-two-question-marks-together-mean-in-c It's useful for trying a series of expressions to find the first one that's not null. Example: Symbol sym = localScope.findSymbol() ?? classScope.findSymbol() ?? globalScope.findSymbol(); That is much cleaner than: Symbol sym = localScope.findSymbol(); if (!sym) sym = classScope.findSymbol(); if (!sym) sym = globalScope.findSymbol(); | ||||
Tags | No tags attached. | ||||
duplicate of | 0000182 | new | ?? operator |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-10-19 20:48 | joey | New Issue | |
2010-07-25 22:26 | redj | Relationship added | duplicate of 0000182 |
2012-03-08 16:52 | redj | Target Version | => 0.45 Ginkakuji |
2012-03-29 07:53 | redj | Category | => Ecere Runtime Library |
2012-03-29 07:53 | redj | Project | @1@ => Ecere SDK |
2014-07-11 18:22 | jerome | Target Version | 0.45 Ginkakuji => 0.46.1 |