Are you a fan of the Rust programming language and wish there were more options? The team at Microsoft has news for you. In this article by Sunil Pardasani, we find that Microsoft has been working on options with using Rust.
The Visual Studio team recently added an extension called Visual Rust, the purpose of which is to provide a development environment for programmers who prefer to program in the Rust programming language. In this article, I’ll provide an overview of this extension and demonstrate how this tool works in Visual Studio.
So, what is Rust? Rust is a programming language that was developed by Mozilla and shares some similarities with the C programming language and particularly focuses on memory safety.
Let us take a quick look at how variable bindings and functions are written in Rust.
In order to understand variable bindings, it is important to understand the meaning of Type Inference. Type Inference means when a variable is declared, it is not given a specific data type — for example, int, string or float – hence, it is referred to as variable binding because the type of the variable is tied to the value. Instead the keyword “let” is used as the type. This is similar to the keyword var in C# and Java, where if something is declared with the type var, the compiler figures out the type based on the value it is assigned in the program. Unlike Java or C#, in Rust the programmer cannot assign a specific data type even if he wanted to.
You can find more information about the programming language Rust here.