C) It's an obvious joke.
s/diplomated/graduate/
s/branche/industry (sector)/
Because let x: y
is syntactically unambiguous, but you need to know that y
names a type in order to correctly parse y x
. (Or at least that's the case in C where a(b)
may be a variable declaration or a function call depending on what typedefs are in scope.)
POV: You open vim for the first time.
The same is true of std::endl. std::endl is simply defined as << '\n' << std::flush
; nothing more, nothing less. In all cases where endl gives you a "properly translated" newline, so does \n
.
std::endl provides zero portability benefits. C++ does have a portable newline abstraction, but it is called \n
, not endl.
Strictly speaking, it should be
Unsafe block syntax in C++
{ ...}
... Perl, Haskell, Lisp, ...
view more: next ›
barubary
joined 2 years ago
@devilish666 C++ (non-stupid):
#include <stdio.h>
int main() {
puts("Hello, world!");
}