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