Ali Mehdi
Ali Mehdi

Reputation: 251

Triple question mark ("???") operator in swift?

Recently I gave an interview and I was asked about triple question mark ??? operator in swift. I didn't know about it so I googled it and can't find anything related. Is there any ??? operator in swift?

Upvotes: -2

Views: 506

Answers (1)

Sam
Sam

Reputation: 2446

There is no ??? operator in Swift (although there is ??, the nil-coalescing operator). That said, Swift allows you to define your own operators, so it's possible that that's what your interviewers were expecting to hear about.

Upvotes: 2

Related Questions