You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a separate type for the notify slice
and simplify the code.
Now the code is split, we can use the fact that
several of the arguments of addArcDepedency
and addNotificationDependency (which used to
be addDependency) are always the same or are
derived in a particular way. This allows us
to remove a bunch of assertions.
The TODO that was mentioned was actually
incorrect, and was computing the wrong
derivative, which is why that assertion
did not work.
Splitting addDepedency now also allows us
to merge addNotificationDependency with
linkNotify. Note that the uniqueness check
can now be removed and that the assertions
are enforced by the compiler (because of the
limitations of the function signature).
Signed-off-by: Marcel van Lohuizen <[email protected]>
Change-Id: I9042cb42be98d4e3f761f7a095f44348815a8dd2
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1207453
Reviewed-by: Daniel Martí <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
0 commit comments