Comment

Comment by netr0ute

    let mut line = String::new();
    stdin().read_line(&mut line)?;
This is what I'm talking about. This is so ugly and clunky and needlessly verbose like Java compared to C++ where you can do

    std::string input;
    std::cin >> input;
and have it Just Work. Why can't Rust do something similar?
parent netr0ute 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton