Properties
Data types typically expose properties, which can be accessed in a Rust-like syntax:
object
.
propertyobject
.
property=
value;
A runtime error is raised if the property does not exist for the object’s data type.
Elvis Operator
The Elvis operator can be used to short-circuit
processing if the object itself is ()
.
// returns () if object is ()
object?.
property
// no action if object is ()
object?.
property=
value;