soy-cheat-sheet icon indicating copy to clipboard operation
soy-cheat-sheet copied to clipboard

Improve elvis and ternary operator descriptions

Open yuchi opened this issue 7 years ago • 0 comments

  • Fix the ternary example with isNonnull so that it is easily comparable with the elvis operator
  • Switch the ternary and null-coalescing operator, so that reading the first (a?b:c) makes it clear what the last does (a?:c)
  • Add link to the docs for the elvis operator too

yuchi avatar Mar 03 '17 08:03 yuchi