Is there a way to use interface delegation and acc...
# announcements
m
Is there a way to use interface delegation and access the delegate without making it a constructor parameter? 🤔
m
Perhaps you could make the primary constructor private, add a parameter for the delegate and add a secondary constructor that synthesizes the delegate and invokes the primary constructor.
I'll admit it's not the prettiest solution, though 😕