Are semicolons annoying to type? Probably, I got used to them The semicolon is the least-annoying non-letter character to type. It's right there on your home row.
Hello American. I'm from one of those other pesky countries that make up most of the human population of earth, and which usually have other keyboard layouts. I have to type shift+, to get the semicolon.
Such a Little Thing: The Semicolon in Rust
21–30 of 81 posts
Re: Such a Little Thing: The Semicolon in Rust
#22Are semicolons annoying to type? Probably, I got used to them The semicolon is the least-annoying non-letter character to type. It's right there on your home row.
Hello American. I'm from one of those other pesky countries that make up most of the human population of earth, and which usually have other keyboard layouts. I have to type shift+, to get the semicolon.
Re: Such a Little Thing: The Semicolon in Rust
#23Is that really some "special behavior"? As far as i understand the semicolon is just an expression separator like in Erlang and Pascal. In contrast, the semicolon is a statement terminator in C. C uses the comma for expression separation. Practically everything is an expression in Rust, even blocks, so foo() => evaluates to the return value of foo { foo() } => evaluates to the return value of foo { foo(); } => evalua…
Re: Such a Little Thing: The Semicolon in Rust
#24Take a look at Haskell for a very clean and expressive syntax without (required) semicolons.
1: http://c2.com/cgi/wiki?SyntacticallySignificantWhitespaceCon...
Re: Such a Little Thing: The Semicolon in Rust
#25Are semicolons annoying to type? Probably, I got used to them The semicolon is the least-annoying non-letter character to type. It's right there on your home row.
Hello American. I'm from one of those other pesky countries that make up most of the human population of earth, and which usually have other keyboard layouts. I have to type shift+, to get the semicolon.
Re: Such a Little Thing: The Semicolon in Rust
#26Re: Such a Little Thing: The Semicolon in Rust
#27Re: Such a Little Thing: The Semicolon in Rust
#28Are semicolons annoying to type? Probably, I got used to them The semicolon is the least-annoying non-letter character to type. It's right there on your home row.
Hello American. I'm from one of those other pesky countries that make up most of the human population of earth, and which usually have other keyboard layouts. I have to type shift+, to get the semicolon.
Re: Such a Little Thing: The Semicolon in Rust
#29Take a look at Haskell for a very clean and expressive syntax without (required) semicolons.
I'd rather have significant semi-colons than significant whitespace[1]. Don't mix presentation and semantics. 1: http://c2.com/cgi/wiki?SyntacticallySignificantWhitespaceCon...
Re: Such a Little Thing: The Semicolon in Rust
#30Is that really some "special behavior"? As far as i understand the semicolon is just an expression separator like in Erlang and Pascal. In contrast, the semicolon is a statement terminator in C. C uses the comma for expression separation. Practically everything is an expression in Rust, even blocks, so foo() => evaluates to the return value of foo { foo() } => evaluates to the return value of foo { foo(); } => evalua…
It's odd because people think of semicolons as the end of a statement, not a delimiter between statements.