At the moment it's not so easy to add a platform specific newline to a string. It's easy in c# ( https://docs.microsoft.com/en-us/dotnet/api/system.environment.newline ) or java ( System (Java Platform SE 8 ) ) but not in standard rust. At the moment println!
is the only way to achieve it out of the box.
How's about we have a formatln!
that's just like format!
but with a platform specific newline on the end of the created string?
Even for a batteries not included std lib this is something I'd expect to see included (just like we have rust path separator ( std::path::MAIN_SEPARATOR - Rust ).
(Maybe I'm missing some super easy way to get a platform specific line ending in std rust?)