April 20, 2024, 6:28 a.m. | Robert Teminian

DEV Community dev.to

A post from my old blog:

https://codenested.blogspot.com/2024/04/see-old-object-pascal-from-new-rust.html


Nowadays I'm working on a new application, and I thought it's a good chance to learn something new, I tried Rust.


As a newbie(or noob) in this area, I enjoy the time fighting against rust-analyzer that always-whining like Grouchy Smurf...... (lol) And today I found something interesting.


In Rust, the following is an error.



let mut raw: String;
handle.read_to_string(&mut raw);


To fix, the first line should be changed like following.



let mut raw=String::raw(); …

application blog chance delphi fighting found good learn newbie object pascal rust something thought

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US