Rust - std::process::exit(0_0)

Nov 2, 2020 9:36 AM

Speykious

Views

586

Likes

3

Dislikes

2

Just came up with that line of code because you can add underscores in numbers in Rust to make them more readable. And then I learned that you can do the same in Python, and probably in lots of other languages...
And it results in 0_0 being a valid number, which is 0. So basically, this line of code above is an exit without errors lol

Made the wallpaper by zooming a lot on the line of code in VSCode with the Gruvbox theme on and editing the screenshot in Gimp to extend the ends of the image to make it fit a 1600x900 ratio.

... Yeah unfortunately I don't have a full HD screen :( I should probably remake this wallpaper in full HD, that'll be more convenient.

wallpaper

programming

coding

rustlang

programming_humor