Hi!

> I was going to learn c++, but then I came across these weird operators
>>> and <<. At first I thought they were heredoc, but, that obviously
> wasn't the case. My next guess is that they were some sort of strict
> comparison === is more strict than ==, so I figured >> is more strict
> than >. That wasn't the case either. After wondering for a while what it
> could be, I decided to look it up. It ends up that you use it to output
> text. cout << "Hello World"; It was SO confusing, because they also have
> printf which can be used to output text. I decided that c++ is obviously
> a garbage language and gave up. Not sure why anyone would ever use it!

Actually since you can use fopen(stdout)+fwrite for outputting text, all
other ways of outputting text should be deprecated too. Including
printf, which is super-confusing with all its formats - why would I need
any of that, and string interpolation too, when I could just compose a
string out of bytes and fwrite it to the stdout? Very confusing. I am
preparing an RFC right now to deprecate all functions that produce any
output except fwrite. My next RFC will be about deprecating all database
extensions because obviously fsockopen+fread+fwrite already covers them all.

-- 
Stas Malyshev
smalys...@gmail.com

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to