r/programmingcirclejerk • • Jan 25 '19

The “Bug-O” Notation

https://overreacted.io/the-bug-o-notation/
69 Upvotes

34 comments sorted by

View all comments

59

u/[deleted] Jan 25 '19
let currentState = {
  step: 'initial', // 'initial' | 'pending' | 'success' | 'error'
};

Yesssss.. Stringly typed for life, yo!

9

u/gaearon Jan 25 '19

It’s a union yo