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
In constructors, I very often need to setup many things, sometimes which refer to the struct itself (in order to reuse code, setup destructors, start goroutines...).
It's not always possible to reorganize such methods to set all the properties at once. So I was wondering if it would be possible to allow such pattern whenever it's done in the same scope?
An alternative idea for this issue could be to add comments to ignore the error on some properties only. I am guessing that this could be easier to implement:
Yeah, as I outlined in #123 - I'm planning to implement such thing. But currently it looks like nightmare to implement. Though, Im not given up on this idea yet)
Thank you for this analyzer, it's very useful.
In constructors, I very often need to setup many things, sometimes which refer to the struct itself (in order to reuse code, setup destructors, start goroutines...).
It's not always possible to reorganize such methods to set all the properties at once. So I was wondering if it would be possible to allow such pattern whenever it's done in the same scope?
Example:
The text was updated successfully, but these errors were encountered: