10.11.2018, 13:21
Quote:
That is quite obviously wrong, just from looking at the code! Did you mean 2 and 3?
enums are a convenience - they make code look slightly cleaner at the expense of some speed. So there is no “best” answer, it depends on whether you prefer cleanliness (3) or speed (4). |
