Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
pain3247ySry but I have difficulties seeing your problem. Look for example at https://stackoverflow.com/questions....
There is an easy example to get data from stdin as string to a variable. Or to use the doc you can start at https://doc.rust-lang.org/std/io/... follow lock, then StdinLock and there is read_line -
pain3247y@vortexman100 you mean getting x chars from stream without encoding? Well you have to use the bytes method manually. https://doc.rust-lang.org/std/io/...
You can use this as headstart https://stackoverflow.com/a/... -
@pain Thank you. I am frustrated because i am leaving the C family and Rust isnt really well documented if youre new. Yesterday i finished a brainfuck interpreter written in rust, and its getting forward, slowly.
-
pain3247y@vortexman100 yeah I definitely feel you man. There are a few things that get me aggressiv too like dealing with lifetimes now and then. Good luck to you! Is there a way to see your current implementation (out of interest)?
WTF, Rust. You are so fucking hard to write, and TBH, your docs are not understandable. Please writte your docs to be understandable, and make it fun to read, like golang does.
WTF, Rust. I am now looking, for 5 hours straight, for a solution for reading stdin into a variable. Nothing. 6 fucking solutions for 6 different rust versions of which not one works. Nothing is readable. Explain the philosophy of you language! What the hell is this?! Is your language based on the C family? On which is it based?! fucking idiots
undefined