News for hackers. Stuff that matters.
Re:The Rust I wanted had no future by pjmlp on Monday June 05, 2023 @03:46PM (#36202470)
Yes defaults matter, it doesn't change the fact that protective gear is available, and like seatbelts, helmets and motorrad full body armour, it is up for security conscious people to make do of what is made available to them.

As for your dynamic arguments request, have fun,

https://godbolt.org/z/YYKrnh4Y9

Re:The Rust I wanted had no future by Ygg2 on Monday June 05, 2023 @05:51PM (#36204399)
It's not just that defaults matter, the problem here is why have footgun as the default?

In a runtime example I can run it with tests and it would behave fine if both values are same or first arg is bigger, in Rust's case it would behave valid for ANY combination of arguments.

Re:The Rust I wanted had no future by pjmlp on Tuesday June 06, 2023 @03:09AM (#36209249)
Likewise with C++ if the safety belt is buckled.
Re:The Rust I wanted had no future by Ygg2 on Tuesday June 06, 2023 @05:36AM (#36210298)
Heavy disagree. This is less giving a safety belt and more like saying we got airbags (that are deadly without seatbelts) and a DIY seat belt is somewhere in there too (it's in a box under the seat).

Coming from Java the C++ stuff is jarringly unsafe.

Re:The Rust I wanted had no future by pjmlp on Tuesday June 06, 2023 @03:40PM (#36218072)
Agree that Java is much better than using raw C++.

Still, if you want to contribute to OpenJDK internals, they will only be taking pull requests in C++, not Rust.

So better learn how to build those seatbelts and airbags, for all the projects we rely on, including Rust's own reference implementation, that aren't going to rewrite their code from C++ into something else.