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
I think this makes no sense, because these are 2 equivalent initialization methods:
// currentAstProjectproj;
proj.new_init(dir_name, "")!;
// the same effect with AstProject! return type AstProjectproj=AstProject.new_init(dir_name, "")!;
The text was updated successfully, but these errors were encountered:
This is deliberate. I understand it makes little sense in this case, but maybe we should just not have this @operator(construct). I deliberately didn't want: Url.parse(...) which would return an optional Url. For something like that url::parse is really correct.
Absence of optionals makes me to add another initialization method, let's call it load(). So the "constructor" will always succeed then, and initialization validation should be done with another method.
I don't have a strong opinion on this, and performance penalties for using optionals in constructors are also unclear.
I'm fiddling with new
@operator(construct)
, and it rejects to return optionals.I think this makes no sense, because these are 2 equivalent initialization methods:
The text was updated successfully, but these errors were encountered: