This reminds me a little of the optional chaining and forced unwrapping syntax sugars recently added to Swift.
I can’t find the link now, but I remember one of the rust core devs explicitly saying that swift was the inspiration for the question mark syntax.
That was “if let”, actually. ? Is similar but IIRC has some differences.
Ah, my mistake
This reminds me a little of the optional chaining and forced unwrapping syntax sugars recently added to Swift.
I can’t find the link now, but I remember one of the rust core devs explicitly saying that swift was the inspiration for the question mark syntax.
That was “if let”, actually. ? Is similar but IIRC has some differences.
Ah, my mistake