@Toasterson @glow Yes, gofmt is great, I really like it since I first saw it some years ago, there is only one way to format your code, which is the one from gofmt, end of discussion :-D Rust has rustfmt, I think they stole the idea from go.
For C I usually use clang-format, with some bike-shedding about its configuration :-/
Which IDE are you using?
I generally adhere to Python's PEP 8 recommendation of 4 spaces.
If you use tabs, users will copy them from terminals or web sites where they have been converted to spaces and paste them somewhere else in your code.
If you indent with tabs and then you want do a line continuation indent up to the opening bracket you have to use the right amount of tabs and spaces. Good luck with explaining that to all your contributors
@Toasterson @glow in theory yes, but in practice you will use two dozens other tools beside your IDE, like diff tools, merge tools and other version control tools, compilers, debuggers, linters, static code analysis tools, ... and only few of them will allow configuration of the tab width.
Only speaking of your current tool set, there might be other people and other tools involved in the project in the future.
@glow You haven't even considered unicode non-ascii whitespace characters!
*points modded nerf at @glow* are you sure?
@Venty @draemmli @vimja
Mate UND Holunder (und Wein)? https://www.regio-natura.de/produkt/mate-wein-holunder/
nth_back being stabilized sounds cool. I will look into the specializations after I come home from vacation and I will still have some days off :-) Thanks for your support.
@zap Wie funktionieren diese Abstandshalter? Ich frage mich schon lange für was diese Besen gut sind.
Lieber Gruss aus dem Zug von Bar nach Beograd 🙂
Oh, wow, looks good to me. The implementation would get simpler and easier to understand if the error result returned the steps in between instead of the remaining steps, but you should go for the interface which is the most useful to the user, which is probably the one you have now.
I really like the idea of try_nth, which is basically just the Result version of nth's Option 😎. Will you try to get it stabilized?
chaos.social - because anarchy is much more fun with friends.
chaos.social is a small Mastodon instance for and by the Chaos community surrounding the Chaos Computer Club. We provide a small community space - Be excellent to each other, and have a look at what that means around here.
Follow @ordnung for low-traffic instance-related updates.
The primary instance languages are German and English.