OT: Swift is now open source

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 3 23:53:03 PST 2015


On 2015-12-04 04:18, Steven Schveighoffer wrote:

> In D-speak, it looks like this:
>
> enum Foo
> {
>     Bar,
>     Baz
> }
>
> Foo foo;
>
> switch(foo)
> {
>     case .Bar: // Foo is implied
>     case .Baz:
> }
>
> void fun(Foo);
>
> fun(.Bar); // Foo is implied
>
> I don't think we could have this exact syntax, though.

I brought that up before, Walter doesn't like it.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list