🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #106

Re: PHP "Features"

#106
From: Simon Clubley
Date: Tue, 27 Oct 2026 19:08
26 lines
2254 bytes
On 2026-10-24, Lawrence DÿOliveiro <ldo@nz.invalid> wrote:
> On Sat, 24 Oct 2026 11:59:30 -0400, Arne Vajhøj wrote:
>
>> Always === is a good workaround.
>
> A workaround is still a workaround. The weak typing that led to its
> necessity is not ?good?.
>

I disagree with you on many things, but agree with you on that one.

You should get strict equality by default with "==" and have to use
"===" to get loose equality.

It's like in C++ where [] does not do bounds checking and you have to
use at() to get bounds checking.

In both cases, they are the wrong way around. Things should be safe by
default and you should have to do something unusual to get unsafe
behaviour.

Simon.

-- 
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
Technical Details
Message-ID: <11bqsr4$1pp8h$2@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11bcbi1$k068$1@dont-email.me> <nk1gv8F1eecU1@mid.individual.net> <11bgih8$f7a$1@reader2.panix.com> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <11bi7bg$2mdi4$1@dont-email.me> <11bikkl$2rllh$1@dont-email.me> <11bjcal$340l8$9@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
Newsgroups: comp.os.vms
Subject: Re: PHP "Features"
Date: Tue, 27 Oct 2026 19:08:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <11bqsr4$1pp8h$2@dont-email.me>
References: <11bcbi1$k068$1@dont-email.me> <nk1gv8F1eecU1@mid.individual.net> <11bgih8$f7a$1@reader2.panix.com> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <11bi7bg$2mdi4$1@dont-email.me> <11bikkl$2rllh$1@dont-email.me> <11bjcal$340l8$9@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 27 Oct 2026 19:08:21 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1893649"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/h69Z7CTL3oOE0ViFfUfu2qVCfjdcxo0M="; posting-host="48c1c04ddf2ba655a81fa26d5f7ef3f5"
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:lLYIm2guSl/1W2CAtNTbbqh5J90= sha256:43xIEWfVKlM1Et+sI0iH4S4fhvclvFLSHM0JVuB37vI=
	sha1:mtsMrRWcS6ppPBsRjHigCbBtbog= sha256:wmJYvQMC5Xm/QYmVtUZZS5qMcCBXCfGmF1xoUm3MB4o=