- Replace
a ?? bbinary operator witha ifnull b. After this change, all control flow occurs with keywords only.- other suggestions instead of
ifnullare welcome.ifnullis nice because it is 2 lowercase words squished together so nobody will miss the identifier name.
- other suggestions instead of
- Remove
??xprefix operator. Replace it withx.?. After this change and Pointer Reform #770, this symmetry exists:*Tis used to make a pointer type, andx.*derefs?Tis used to make a nullable type, andx.?de-nullifies- Both operations have assertions that are potentially unsafe -
.*asserts the pointer is valid among other things and.?asserts the value is non-null.
Anecdotally, this will look a lot better syntactically, especially with C-translated code.