I think gofmt, python black, etc have demonstrated that it's usually better to have a single standard then it is to fight endlessly about these details.
It would be a stretch to say they demonstrated that it’s better to enforce a standard.
Black, itself, changed rules many times within a 1-year period to the point our own CI would fail on existing code that previously passed.
You problem isn’t that black changed formatting rules, your problem is that you didn’t pin CI dependencies. This isn’t a unique problem to black, any other tool used in CI pipelines can cause things to break if you don’t pin them.
Allowing alternatives yields zero benefit and causes pointless debates and diffs.
yes, having languages establish an immutable standard for tabs vs spaces has clearly ended all debate over them.
let traversed-distance := yard-length;
And: let traversed-distance := yard - length;
Which is valuable as kebab-case is best case.I'm curious whether you tried gtk-rs and if so what problems did you have?
Personally I find that Rust has less cognitive load, because so much of what you'd generally worry about in other languages is covered by language features in Rust: static typing, algebraic data types, etc
Nothing beats Cargo and company and loves compiler messages. Have used NIM as python replacement, and while language is great and nim batteries are decent, the ecosystem is not there. But who would use nim as python replacement!?
It's certainly a language that encourages programming in a functional flavor, even if the lang itself isn't functional.
It’s missing some features like higher kinded types but it’s functional nonetheless.
I’m interested to hear what your definition of functional is - it’s always interesting because it’s such a vague term, really.
https://en.m.wikipedia.org/wiki/Functional_programming
And then tell me Rust is _not_ those things.
I've used Rust and (imperative-style) Scala a lot, and I have to say, Scala is way easier since it doesn't have to deal with the borrow checker, but it still has an amazing type system.
Nim is statically typed and has algebraic data types, so I imagine it's also as easy as Scala, easier than Rust.
I like Rust well enough, but thinking about memory management is a reasonably large effort that I generally don't have to make in most languages. Rust, in not having a GC, strictly adds to that load compared to most languages out there. The exceptions are languages like C, C++, and assembler, and there I agree that Rust seems to make things a fair bit easier.
(Though, disclaimer, I never got around to learning modern C++, which I gather is a huge improvement over the style of C++ I do know.)
I'd be willing to accept, though, that Rust's lack of full-blown OO features, and its strict controls on mutation, often makes things easier in large shared codebases. Perhaps not letting people do some particularly wild things that I'm used to seeing in Java and C# at my day job. I'm not in a position to have a worthwhile opinion on that claim, though.
The borrow checker isn't a hindrance, it's an aid. Rust gives me syntax to describe lifetimes and a tool to check that syntax.
I personally don't like that "structures with methods" way of doing things in Rust/Go but maybe that's just about getting accustomed
It's still fun though, and I appreciate the minimal visual noise while writing it.
Seems like GTK is the pretty clear frontrunner?
The most popular rust gui library at the time of writing seems to be egui with 489k downloads.
Shout out to https://github.com/StefanSalewski/gintro which was super simple to build a simple GUI tool. With Rust I have no idea what to use after trying 5 different libraries.
The downside of Nim seems to be highly unpredictable performance in my experience. With Rust it's much easier to control. This might be a deal-breaker unless I can find some solution to it. Maybe it's just using it more than two weeks and learning the ropes.