Using Visual Rust Extension in Visual Studio

Rust

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s