— Is this an okay exception? My surface area is the iterator protocol, so next and value
I posted in here earlier when it was not so fleshed out, but now I got it working! But so shamefully breaking encapsulation!
— What does new Strategy mean?
— Oh god
— I'm not sure what this means 😅
— It is the strategy design pattern
— In this case a strategy interfaces with an iterator/generator yielding that state object
— It is tightly coupled with it
— Async iteration is confirmed in a future version of js now btw
— Anyone here tried buildng a POS with node need some ideas