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 my opinion, It looks like it's better to forbid them. Fields will be used only on instances in methods that use self (borrow or move). If not using self than we already have static variables. And to access self methods we have to either init struct explicitly and so we can require user to provide values, or we can set them in builder function (e.g. new) and default values can be set there.
default implementation on functions
i can't explain well enough
in this case using
:
to set both type of field and implementing will be a bit confusingThe text was updated successfully, but these errors were encountered: