Den 2020-08-13 kl. 17:50, skrev Axel Berger:
> That's not the main point. Very few sites come even near to being valid.
> 90 % of the bloat (and the same share of the malware entry points) come
> from trying to second guess, whatever the author might have meant by the
> utter nonsense he wrote.
That goes for most programming languages, just the amount of guess-work
differs.
- did the programmer mean to use variable b as a Boolean or int or long
here ?
c :
int b = 1;
- did the programmer mean to use variable b or b2 here here ?
(Visual basic - not .NET with option explicit off
b2 = 4
-- b2 not declared, but let's do that for him. He probably wants that
PHP - let's guess he means false - since the truth-table is a nightmare
anyway
I especially enjoy the NULL row
c :
int main (void) {
int i;
long l;
l=1;
i=2;
i=l; // why can I do this? they have different data types - guesswork
}
The examples just goes on
>
> The world would be a much better place now, if early on all browser
> vendors had agreed *not* to guess but simply display nothing but "syntax
> error" on all non-valid pages.
yes
--
Björn
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|