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 trial

General Discussion

imelda cloutier
PLUS
imelda cloutier
Courses Plus Student 2,597 Points

Dry version

wouldn't this should be added in the end? I understand the point of showing the no need for default case but wouldn't be a show that to be dry that would be the dry coding?

enum Day { case monday case tuesday case wednesday case thursday case friday case saturday case sunday } func dayType(for day: Day) -> String { switch day { case Day.saturday, Day.sunday: return "Weekend" default: return "Weekday" } }