Rust 1.32.0 Stable Release Includes New Debugging Macro, 'Quality of Life' Improvements (rust-lang.org)
An anonymous reader summarizes the changes in Thursday's release of Rust 1.32.0 stable:
"Quality of life" improvements include a new dbg macro to easily print values for debugging without having to use a println statement. For example, dbg!(x); prints the filename and line number, as well as the variable's name and value, to stderr (rather than to standard output). Making it even more useful, the macro also returns the value of what it's debugging -- even all the boolean values returned by each execution of an if-then statement.
Rust macros can now match literals of any type (string, numeric, char) -- and the 2018 edition of Rust also allows ? for matching zero or one repetitions of a pattern.
In addition, all integral numeric primitives now provide conversion functions to and from byte-arrays with specified endianness.
Rust macros can now match literals of any type (string, numeric, char) -- and the 2018 edition of Rust also allows ? for matching zero or one repetitions of a pattern.
In addition, all integral numeric primitives now provide conversion functions to and from byte-arrays with specified endianness.
People here used to be excited or at least interested/thoughtful about real actual nerdy news.
Now it doesn't matter the topic of conversation, the perpetually offended snowflakes cannot shut up about SJW. Bleh.
If one ignores the hype, the fanbois, the haters and the plain stupid, Rust is an interesting language. It's the first credible attempt to displace C++ in areas where C++ is king. And by credible, I mean not designed by someone who clearly hates and or plain doesn't understand C++ and can't see why it's used.
It's not a perfect lanaguage and it's not a panacea (fucking duh) but it makes some of the knottier problems of C++ go away, especially in certain domains and it's given the C++ community interesting things and directions to think about. So yeah it's interesting because I'm a nerd and interested in programming languages.
And fuck anyone here who isn't. News for nerds.
SJW n. One who posts facts.