Skip to content
pannous edited this page Feb 19, 2021 · 2 revisions

The elvis operators ?: and ?. are safe navigation operators.

However they are serve opposite situations:

If a value is absent, ?: takes the default to the right. ø?:1 == 1
If a value is available, ?. proceeds to the right property. {a:1}?.a == 1

Home

Philosophy

data & code blocks

features

inventions

evaluation

keywords

iteration

tasks

examples

todo : bad ideas and open questions

⚠️ specification and progress are out of sync

Clone this wiki locally