News for hackers. Stuff that matters.
Re:Go is boring, and that’s fantastic by falcolas on Thursday July 02, 2020 @09:36AM (#23712928)
> I am getting old and lazy. I want the compiler to do more for me, not less.

Ironically, and for the same reasons, I want the opposite. I want the compiler to stop fighting me on every little detail. I'm exceptionally tired of writing boilerplate interfaces, thinking excessively about what size of integer I want to use, or digging into lambda calculus just to make a stone-stupid compiler (or worse, a borrow checker) happy.

Re:Go is boring, and that’s fantastic by nvarsj on Thursday July 02, 2020 @11:05AM (#23713996)
Also, ironically, go doesn't even do this - it fails compilation on the most useless and pedantic of errors - unused variables and imports. Despite the fact that it's common practice to comment out sections of code during development and debugging, which inevitably leads to unused variables/imports.
Re:Go is boring, and that’s fantastic by kstenerud on Thursday July 02, 2020 @02:01PM (#23716108)
This.

So damn annoying and stupid that I finally broke down and modified the compiler to add a -warnunused flag so I don't have to suffer.

https://github.com/kstenerud/go#the-go-programming-language

Re:Go is boring, and that’s fantastic by nvarsj on Thursday July 02, 2020 @02:36PM (#23716478)
That's not a bad idea - I may go the same route.

I like go for a lot of reasons. But these idiosyncrasies really drag the language down at times.

Re:Go is boring, and that’s fantastic by furstenheim on Thursday July 02, 2020 @06:01PM (#23718593)
How ironic, one of the first things that I missed in Java was that. Nor the compiler error, nor the standard linter (checkstyle) prevents unused variables.
Re:Go is boring, and that’s fantastic by cmrdporcupine on Thursday July 02, 2020 @10:24AM (#23713400)
Don't get me wrong, I find Rust has pretty high mental overhead. The borrow checker really is not intuitive to me.

For the niche that Go is applied in often.. .basically middleware type things, long running services, etc. I wouldn't necessarily jump to Rust.

I think Rust is well suited to lower level systems development, as a replacement for C/C++ there.

What's frustrating about Go to me is that we _need_ a nice clean compiled language with a static type system and garbage collection for services development. To replace Java, etc. But ... not this one. Go to me feels like a huge step backwards, and in my experience with code review with the Go folks at Google, it's a very strident and dogmatic language community, too.

I'd like something like OCaml, but with less functional religion, maybe.

Re:Go is boring, and that’s fantastic by mikeschmatz on Thursday July 02, 2020 @05:31PM (#23718295)
C# with .Net Core seems to fit the bill.
Re:Go is boring, and that’s fantastic by iimblack on Thursday July 02, 2020 @01:36PM (#23715798)
I’m keeping an eye on Crystal for this. Version 1 should be coming this year it seems.
Re:Go is boring, and that’s fantastic by dimitrios1 on Thursday July 02, 2020 @09:41AM (#23712965)
It sounds like what you would prefer is a dynamically typed language like Ruby, Python, PHP, JavaScript, Clojure, Erlang, etc.