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.
slardiaardvark
joined 1 year ago
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.