OK I'm designing my own programming language and I'm adding a conditional assignment feature. Which design do you prefer?
! Word Based...
int x = if (input is int): input, else: __Null__;
! ...or symbol based?
int x = ? (input is int): input || __Null__;
The first kind of confuses me because having a separator (the comma) and a keyword (else) and another separator (the colon) seems redundant (although if you are using the colon as control character after keywords this becomes not-so-redundant).
Also, in most languages I have used you'll find that ternary operators are usually symbol based.
So, I would definitely go with the second.
HOW ARE YOU GOING TO DESIGN YOUR OWN PROGRAMMING LANGUAGE!!!