- 2 Posts
- 2 Comments
Joined 2 years ago
Cake day: June 23rd, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Bummer, thought that might be the case, but was wishing it wasn’t because it seemed quite nice to avoid the ifs there as well.
Oh just because the docs said “The null-conditional operators are short-circuiting” and “the rest of the chain doesn’t execute” I wondered, if the object is null, it would just skip executing the assignment completely. Didn’t have high hopes, but thought I’d ask just in case, as it would be kinda handy as well. Probably pretty rarely though.