4 ms·
I think that compromise was brilliant, by the way. The only other C-family language with that syntax (dot followed by keyword) I know of is Java (where you can
by octoberfranklin 6y ago
I think that compromise was brilliant, by the way.
The only other C-family language with that syntax (dot followed by keyword) I know of is Java (where you can write foobarbaz.class; "class" is a language keyword) and it always looked weird.
The Rust maintainers found a great use for it: getting chaining (foo.await?.bar()?.await...) without adding a new postfix "sigil".