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
it occurs to me that is repetitive having to specify the name twice. It occurs to me with property delegates the delegate could get the name from the variable it is a delegate for. Ideally it would look like this:
val fooModule by DI.Module { ... }
Which unfortunately would clash with the deprecated unnamed module constructor so not sure if you can use this without invoking the deprecated constructor, but the proposal is to provide some mechanism to name the module via delegation.
Speaking of the deprecated module constructor, the quick start guide shows an example using this. If it is deprecated then you probably show not show it in the guide.
The text was updated successfully, but these errors were encountered:
Creating a module like this:
it occurs to me that is repetitive having to specify the name twice. It occurs to me with property delegates the delegate could get the name from the variable it is a delegate for. Ideally it would look like this:
Which unfortunately would clash with the deprecated unnamed module constructor so not sure if you can use this without invoking the deprecated constructor, but the proposal is to provide some mechanism to name the module via delegation.
Speaking of the deprecated module constructor, the quick start guide shows an example using this. If it is deprecated then you probably show not show it in the guide.
The text was updated successfully, but these errors were encountered: