Re: [swift-evolution] constant var

2017-12-11 Thread Rafael Guerreiro via swift-evolution
You actually need a class to wrap the dictionary. That’s because dictionaries are struct, with copy-on-write. With a class, you’ll be able to have it mutable, in a let declaration. On Mon, Dec 11, 2017 at 11:34 PM Inder Kumar Rathore . via swift-evolution < swift-evolution@swift.org> wrote: > Hi

[swift-evolution] Strategy on enums - switch might get complex

2017-08-13 Thread Rafael Guerreiro via swift-evolution
Hello, If this subject was debated before, please, let me know. I googled something related to it, but I couldn't find answers on why: - Enums only allow literals raw values; - It is acceptable using switch, even if it gets big; - The problem with switch is that it makes it easy to ad