News Score: Score the News, Sort the News, Rewrite the Headlines

GitHub - ozgunozerk/state-shift: Macros for implementing Type-State-Pattern on your structs and methods

What is State-Shift? I love type-state pattern's promises: compile time checks better/safer auto completion suggestions by your IDE no additional runtime costs However, I agree that in order to utilize type-state pattern, the code has to become quite ugly. We are talking about less readable and maintainable code, just because of this. Although I'm a fan, I agree usually it's not a good idea to use type-state pattern. And THAT, my friends, bothered me... So I wrote state-shift. TL;DR -> it lets y...

Read more at github.com

© News Score  score the news, sort the news, rewrite the headlines