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
How do you propose creating an automatic check? I could be missing your question, sorry. But this function (satisfiedBy) exists on the Interface you create to check:
constRepository=Interface(.{...});
// In functions that accept interface implementations:fncreateUser(repo: anytype, name: []constu8, email: []constu8) !User {
comptimeRepository.satisfiedBy(@TypeOf(repo));
// ... rest of implementation
}
// Or verify directly:comptimeRepository.satisfiedBy(InMemoryRepository); // where `InMemoryRepository` is the struct implementing `Repository`
@adex-codez - the latest updates should be much more aligned to automatically check (still a small step to construct/convert into the interface type from a concrete impl). Check it out and lmk what you think. PR at #9.
Activity
nilslice commentedon Nov 21, 2024
How do you propose creating an automatic check? I could be missing your question, sorry. But this function (
satisfiedBy) exists on the Interface you create to check:nilslice commentedon Oct 28, 2025
@adex-codez - the latest updates should be much more aligned to automatically check (still a small step to construct/convert into the interface type from a concrete impl). Check it out and lmk what you think. PR at #9.