TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: =?UTF-8?Q?BJ=C3=B6RN_LUND
date: 2020-08-13 23:53:00
subject: Re: Lightweight Browser

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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.