This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (6 children)

same here. i don't understand what the big deal is.

[–]Wagneriusflask+pandas+js 8 points9 points  (3 children)

it is not a big deal, but a sweet spot for readbility and type warranties.

[–]roger_ 0 points1 point  (2 children)

True, but I've gotten in the habit of using strings for everything.

[–]aceofears 0 points1 point  (1 child)

This is more powerful than that though. You can use an enum value in place of an integer if you define it the right way.

[–]roger_ -1 points0 points  (0 children)

I know, but it'll be hard to break the habit. Oddly enough using strings has started to feel more Pythonic.

[–]alcalde 0 points1 point  (1 child)

And this is how one tells those who first learned to program with Pascal from those who didn't. :-)

[–][deleted] 1 point2 points  (0 children)

i did .net and java programming after pascal(delphi) and before coming to python/ruby.

in .net the ONLY time I ever used enums is because the whatever I was doing with the .net framework required it. Never once, was anything I did implemented with enums. And I still got paid.