Interesting. I think I saw this in Swift? Or c#? I guess in Python this is where EAFP comes in. I definitely hate chains of guards to get at a nested property.
TypeScript: Vote for Experimental Support of Optional Chaining
11–14 of 14 posts
Re: TypeScript: Vote for Experimental Support of Optional Chaining
#12It's been years since this proposal and everyone keeps arguing over semantics yet I don't see any semantics being changed. So what's the holdup? I understand constraints and external factors/dependencies but this seems like such a trivial change that it boggles me we don't have this as a standard feature yet.
Re: TypeScript: Vote for Experimental Support of Optional Chaining
#13Language design should not be determined by "votes".
Language design priorities should definitely decided based on votes.
Re: TypeScript: Vote for Experimental Support of Optional Chaining
#14Language design should not be determined by "votes".
Correct.
It is valuable feedback though.