Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialYan Kozlovskiy
30,427 PointsWhy aren't case statements in enums surrounded by quotes?
I just saw the video on enums and I'm a bit confused.
enum Day { case monday case tuesday etc.... }
To check you do Day.monday and add whatever logic. I don't understand how it knows that monday is supposed to be a string, instead of a different type.
How does this work? Why aren't the case statements surrounded by quotes?