Concept for the "ultimate dependency notation" #21
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The idea is we should be able to just write
and for an implementation with no dependencies
(I don't see a way to make the initial
() =>
to record no dependencies optional,but that seems like a fairly small price to pay, and being explicit that there are no dependencies isn't terrible.)
And for signature-specific dependencies, this would be:
This seems to simplify both the dependency specification and the function body so much that it seems well worth switching to.
The implementation idea is actually to call the implementation on a specially-Proxied object that records all the property gets, so it extracts the names of the dependencies.