Swifty Waves

Swift Enums breaks the Open/Close Principle

This idea is analised on this article.

Basically, my idea, after have read the article is that Swift Enums are bad if "any new case to the enum implies changes in existing case code".

Simple as that.

For more information, is read the articles :)

Resouces

https://medium.com/@rjchatfield/the-expression-problem-in-swift-6f2471291604

https://stackoverflow.com/questions/40396639/swift-extend-an-enum-for-only-one-of-its-cases

Tagged with: