Remind me: why did I ever start working on a compiler? .__. Can't keep that complexity in check.
-
Show this thread
-
Note to future self: NEVER pass emitters around. Don't ever do it. Nest emitters if you have to. Inherit from emitters. Just don't pass them as function arguments. It's going to create multi-dimensional string-typed APIs and you _will_ be confused. So just. Don't.
8 replies 3 retweets 5 likesShow this thread -
Replying to @yoshuawuyts
I’ve struggled with this. Any examples of alternatives?
1 reply 0 retweets 0 likes
Replying to @mikker
Just keep a central emitter. Define classes that might emit events. Or perhaps even better: only ever expose static methods, and keep the rest hidden behind an interface. The moment you perform layers of dynamic dispatches you're in for a world of hurt :P
5:35 AM - 13 Feb 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.