A Switch for Grenk
by in Feature Articles on 2019-02-27Let’s say you’ve got a project object in your code. A project might be opened, or it might be closed. In either case, you want to register an event handler to change the status- closed projects can be opened, opened projects can be closed. Now imagine you’re Antonio’s co-worker, Grenk.
No, this time, it’s not a matter of streams. Today, it’s ternary abuse, of the “why is this even here” sort.