expr icon indicating copy to clipboard operation
expr copied to clipboard

Support for conditional chaining

Open asaf opened this issue 5 years ago • 0 comments

I have deep objects which may sometimes have nil on the chain.

In those cases, without conditional nil operator it becomes very difficult to write expressions.

It could be great to support conditional chaining using question mark such:

https://play.golang.org/p/O70145vAj0-

Best, Asaf.

asaf avatar Nov 21 '20 12:11 asaf