On Sunday, 3 January 2021 at 04:16:20 UTC, Paul Backus wrote:
On Sunday, 3 January 2021 at 02:41:12 UTC, Paul wrote:

hashOf is not guaranteed to produce unique values, so I would not advise using it here.

Of course it's a hashing method but also internally used for comparison and good enough, at least in that example code. By using an enum I don't assume there will be that much members to take care of anyway. The hash is also generated at compile time.

Reply via email to