--- Comment #6 from 2012-01-07 07:18:55 PST ---
(In reply to comment #4)
> I would be against making 'in' return bool for AAs. I often do:
> if (auto x = foo in someAA)
>     // do something with *x
> Doing a lookup after checking for foo's presence in someAA is ugly compared to
> this.

Ugly is returning a pointer in a language like D where pointers are usually not

What's bad/ugly in code like this? I think it's more readable:

if (foo in someAA) {
    // do something with someAA[foo]

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to