News for hackers. Stuff that matters.
Re:Why I love Rust for tokenising and parsing by treyd on Friday November 08, 2024 @08:26AM (#42086674)
I expect it to implement features that have become ubiquitous in every other mainstream language from the last 30 years, yes.
Re:Why I love Rust for tokenising and parsing by Thaxll on Friday November 08, 2024 @08:52AM (#42086827)
That's how you end up with C++ and soon C#.
Re:Why I love Rust for tokenising and parsing by biorach on Friday November 08, 2024 @10:10AM (#42087419)
No, the person you were replying to was advocating for the intersection of ubiquitous features. C++ seems to be aiming for the union.
Re:Why I love Rust for tokenising and parsing by pjmlp on Friday November 08, 2024 @08:56AM (#42086867)
We also end up with C23, Fortran 2023, COBOL 2023, Scheme R7RS,... even those oldies embrace modern ideas.
Re:Why I love Rust for tokenising and parsing by miohtama on Friday November 08, 2024 @09:47AM (#42087229)
When we can call it Go++
Re:Why I love Rust for tokenising and parsing by umanwizard on Friday November 08, 2024 @02:00PM (#42089523)
It’s really not. The strawman that if we add a few features that have stood the test of time in every other language we’ll end up with C++ is just not true. Nobody is proposing adding SFINAE-based conditional compilation, rvalue references, multiple inheritance, or any of the million other Byzantine features that make C++ virtually impossible to use correctly. Adding sum types and a match statement does not necessarily start you down that path.
Re:Why I love Rust for tokenising and parsing by randomdata on Friday November 08, 2024 @02:35PM (#42089795)
But then what purpose would it serve? The last 30 years has brought no lack of new languages, not to mention evolution of older languages. Just use one of them.

The purpose of creating yet another language with Go was to break from what everyone else was doing, to see if a "simple" language would stop developers from playing with fun language toys all day to instead focus on actual engineering.

Arguably it was successful in that.

Re:Why I love Rust for tokenising and parsing by pjmlp on Saturday November 09, 2024 @01:54AM (#42092931)
The purpose was to get rid of C++ compile times and replace C++ with Go, failing that, they decided to pivot the story.

https://commandcenter.blogspot.com/2012/06/less-is-exponenti...

They also got lucky with Docker and Kubernetes, pivoting from Python and Java respectively into Go.

Re:Why I love Rust for tokenising and parsing by randomdata on Saturday November 09, 2024 @08:55AM (#42094438)
Numerous languages already got rid of C++ compile times. That didn't necessitate another one. Certainly Go wouldn't want C++ compile times any more than any other language, but as far as justifying its creation that would not be sufficient justification alone.

Legend has it that Go was conceived while waiting for a C++ program to compile, if that's what you are thinking of?