Am I the only one who always struggles to remember if the "safe navigation operator" goes `&.` or `.&`?

· · Web · 2 · 3 · 2

@pablobm no but in my head it reads like "and maybe".
So the regular method call (.foo) comes after the and (&).

Having that in my head probably makes this easy to remember for me.
Maybe it helps you too?

@alexanderadam That sounds like a great mnemomic! Let's see if it works next time. Thank you!

@pablobm According to Matz, "someone sitting on the floor looking at a dot on the floor" is how to remember it youtube.com/watch?v=LE0g2TUsJ4

that being said, I forget too

Sign in to participate in the conversation
NI Tech

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!