Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Rust is Not so Hairy.
// If field is not initialized, it is initialized with default value first.
pub fn mut_message(&mut self) -> &mut ::std::string::String {
&mut self.message
=========
Geez, this is ugly.
And here's another..
// Take field
pub fn take_message(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.message, ::std::string::String::new()) }
There are no comments on this comment yet.
// If field is not initialized, it is initialized with default value first.
pub fn mut_message(&mut self) -> &mut ::std::string::String {
}=========
Geez, this is ugly.
And here's another..
=========
// Take field
pub fn take_message(&mut self) -> ::std::string::String {