3 ms·
Also, using it with RoboGuice is a bit annoying. At the moment I use vals, but it still requires me to mark injected dependencies as nullable (and coerce them
by Nullabillity 10y ago
Also, using it with RoboGuice is a bit annoying.
At the moment I use vals, but it still requires me to mark injected dependencies as nullable (and coerce them with !! on use), which feels like I'm fighting the type system.
It would be really nice if there was some sort of "special" null that was of the non-nullable type, but could only be used when initializing variables.
- gregschlom 10y agoWouldn't a `lateinit var` solve the problem in this case? (Although the downside is that now it's a variable) Otherwise I'm sure you can come up with a good solution using delegated properties or something like that.
- Nullabillity 10y agoOh wow, wasn't aware that existed. Thanks!
- BoorishBears 10y agoPeople still use RoboGuice?
- deleted 10y ago[deleted]