Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 19, 2019 05:34 pm

Rust 1.32.0 Stable Release Includes New Debugging Macro, 'Quality of Life' Improvements

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.

Read more of this story at Slashdot.


Original Link: http://rss.slashdot.org/~r/Slashdot/slashdot/~3/tiKNySkArcE/rust-1320-stable-release-includes-new-debugging-macro-quality-of-life-improvements

Share this article:    Share on Facebook
View Full Article

Slashdot

Slashdot was originally created in September of 1997 by Rob "CmdrTaco" Malda. Today it is owned by Geeknet, Inc..

More About this Source Visit Slashdot