
July 25, 2018
4:16 p.m.
On Wed, Jul 25, 2018 at 12:12 PM Nicholas Chammas < nicholas.chammas@gmail.com> wrote:
On Mon, Jul 23, 2018 at 6:05 PM Giampaolo Rodola' <g.rodola@gmail.com> wrote:
This:
v = a?.b
...*implicitly* checks if value is not None [and continues execution]. This:
v = a if a.b is not None: v = a.b
...*explicitly* checks if value is not None and continues execution.
I think both of those are equally explicit. It's just that one notation is more concise than the other. Explicitness and conciseness are related but different things.
<snipped>
It looks like others already discussed this point later in the thread. Apologies for rehashing the argument.