DEV Community

G-type
G-type

Posted on

Rust: Day two

Hello again developer community. It is my second day learning rust. For those who read the previous post, I primary develop in C, C++, NODE.js and Python. I thought I would learn rust because it might be fun to stop using the same languages I am comfortable. The script for today is a basic usage of string variables and printing them out.

fn main() {
    let name = "Gtref";

    println!("{}", name);
}
Enter fullscreen mode Exit fullscreen mode

And this code produces the output:

Gtref
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
akhourianmolkumar profile image
Akhouri Anmol Kumar •

keep learning bro rust is really useful
I've built a security software product, for it I used python but honestly the main weakness of that product is that is made on pure python... if somehow I've knowledge of rust I had done this Python+ Rust but because I've not I skipped it...
and it became the main security weakness of the product. I would learn rust for sure in next 1-2years..cz it is useful 🫡

Collapse
 
gtref profile image
G-type •

I am trying to learn it because I have a tool on the node js package repository called git-smart-merger or something. I want to remake it in rust for native performance and not have to wait for node to spin up in the background.