H. S. Teoh:
This also allows you to do a complete null check in a single
statement:
if (maybe(tree).left.right.right.left.right !is null) {
Better with UFCS?
if (tree.perhaps.left.right.right.left.right !is null) {
Bye,
bearophile
H. S. Teoh:
This also allows you to do a complete null check in a single
statement:
if (maybe(tree).left.right.right.left.right !is null) {
Better with UFCS?
if (tree.perhaps.left.right.right.left.right !is null) {
Bye,
bearophile