Open Robert-M-Muench opened 5 years ago
To take advantage of D's meta-programming strength, most operators perform optimization using "hasCompleted" and "hasFailure." The makeObserver function needs to toggle whether the return value has a "completed" method or a "failure" method, depending on the argument. It is difficult to do this with one function.
There exists:
Since every delegate is checked anyway with:
why not use only one function like this?
IMO this gives a simpler interface and it allows me to only provide a doPut delegate.