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

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Senior Software Engineer, Generative AI (C++)

@ SoundHound Inc. | Toronto, Canada