Tried rust, its nice :)

94 points BravestCheetah 27 comments

Hello!

Im Cheetah, mainly a python developer who has in the last year tried many new languages (including java, javascript and skript). Yesterday i was quite bored in class and felt like trying something new.

As im in school at this time i looked for online rust playgrounds, finding play.rust-lang.org .

To have a simple program to write to test the language and learn its quirks i figured i could make a good old BrainF*ck interpreter.

After finishing this ~90 line bf interpreter i have some things to say about the language:

  • I do like the syntax, its quite similar to other languages so i have nothing to say there.
  • I was quite stuck on different types of strings, for example a function takes in &str but when using the variable inside the function its now all of a sudden a String? (this may just be me being a quite high level developer though)

Anyways the hardest part to learn was types, and the different variations in types. I did enjoy the language and will probably play around with it a bit more!

heres the code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=12f3b3bad15554aed436941983658d33

Anyways, cool language, i enjoyed most of it, had some fun :D