#cpp #syntax #fun #attempt #flush #iostream #humorous

riostream

A humorous attempt at implementing C++'s iostream and its syntax in Rust

4 releases

0.1.3 Sep 14, 2023
0.1.2 Sep 14, 2023
0.1.1 Sep 14, 2023
0.1.0 Sep 14, 2023

#5 in #flush

MIT/Apache

5KB
78 lines

riostream

A humorous attempt at implementing C++'s iostream and its syntax in Rust.


lib.rs:

A humorous attempt at implementing C++'s iostream and its syntax in Rust.

Differences from c++:

  • [rin] reads lines instead.
  • endl and flush consumes the stream object to avoid an 'unused operator result' lint from rust.

Disclaimer: this is purely for fun, do not use this crate in production.

No runtime deps