between and among: worth Phobosization?

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Dec 17 09:17:29 PST 2013


On 12/17/13, Byron <byron.heads at gmail.com> wrote:
> I don't know why we can't do this instead:
>
> if (foo in ["alpha", "beta", "delta"] ) {

You can come pretty close with:

if (foo in A["alpha", "beta", "delta"] )

Here's the code:

http://forum.dlang.org/thread/mailman.111.1325867961.16222.digitalmars-d@puremagic.com#post-mailman.111.1325867961.16222.digitalmars-d:40puremagic.com


More information about the Digitalmars-d mailing list