Re: [RFC] Deprecate Backtick Operator (V2)

From: Date: Tue, 08 Oct 2019 18:48:39 +0000
Subject: Re: [RFC] Deprecate Backtick Operator (V2)
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-107429@lists.php.net to get a copy of this message
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 smalyshev@gmail.com

« previous php.internals (#107429) next »