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
Is your feature request related to a problem or challenge?
While working on https://github.com/datafusion-contrib/datafusion-dft it was not clear that RuntimeEnv::new() actually returns a Result as the typical rust convention is a function new() is infallable and a function like try_new() is fallable. While this isn't a big deal it was a small usability papercut
Describe the solution you'd like
I would like RuntimeEnv to follow standard rust conventions to make it easier to use
Is your feature request related to a problem or challenge?
While working on https://github.com/datafusion-contrib/datafusion-dft it was not clear that
RuntimeEnv::new()
actually returns aResult
as the typical rust convention is a functionnew()
is infallable and a function liketry_new()
is fallable. While this isn't a big deal it was a small usability papercutDescribe the solution you'd like
I would like
RuntimeEnv
to follow standard rust conventions to make it easier to useDescribe alternatives you've considered
I suggest:
RuntimeEnv::new()
RuntimeEnv::try_new()
that does the same thingtry_new
insteadAdditional context
No response
The text was updated successfully, but these errors were encountered: