Thanks for the post! I think this is a great pattern to follow.
I have one question left: is there a reason you return the error as first item and not the requested end-value?😇
thanks for your time Jannis! :)
my first approach was to mimic the Go way, but after it "clicked", I started using it in different ways!
Is there a reason though?🤔
I got that - sorry if I wasn't clear enough, let me rephrase my question:
Is there a reason to go for a return that can be destructered as [err, value] over one that would be destructered with [value, err]?
I hope I made it understandable now.😇
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.