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 have a request for an option to wrap long function calls. I like the current way of handling chaining method calls. But it seems if one function call gets too long for a given, length then it will stack all the arguments with each getting its own new line. I would like to pack as many argument into one line before wrapping to the next line instead of stacking. I have code that does a lot of error handling and I am finding that lots of my vertical screen real estate is getting taken up by error handling by argument stacking.
So instead of this:
impl.stats.FuncError(
example,
with9999999,
"argument",
stacking101010101010,
isThereAnywayToPackThemOnOneLine(err),
helloWorld,
)
Thanks for the feedback here. Although I prefer the current layout, we could definitely add a flag for users to opt-in to the more compressed one. I believe that it's actually a pretty challenging change to make, but this requires more investigation to verify.
I'll leave this request open as a TODO in case someone wants to dig in more.
Thank you for this great library!
I have a request for an option to wrap long function calls. I like the current way of handling chaining method calls. But it seems if one function call gets too long for a given, length then it will stack all the arguments with each getting its own new line. I would like to pack as many argument into one line before wrapping to the next line instead of stacking. I have code that does a lot of error handling and I am finding that lots of my vertical screen real estate is getting taken up by error handling by argument stacking.
So instead of this:
I want to do this:
I like how you stack map values. I'm using v0.6.0.
The text was updated successfully, but these errors were encountered: