giu
giu copied to clipboard
more effective state system
Related problem
writing state system impl takes always a lot of time, like:
- implement widgetState struct
- implement constructor for it these points are constant, however, I need to write as well:
- getState method that gets state from giu, runs constructor if it is nil or does tpecasting if it isn't
Your request
Context.GetState returns Disposable but now, when generics are on, it could return the exact type right?
Alternative solution
No response
Additional context
No response
@gucio321 Agree, it's better to return actural type rather then interface.
meh, unfortunetly, method cannot have type parameter :-(
./Context.go:108:27: syntax error: method must have no type parameters
so it isn't possible yet or I'm doing something wrong

it is fixed