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
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