Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Lazy programmers guide to blizz Date: Tue, 5 Nov 2019 11:20:47 +0100 Lines: 44 Message-ID: References: <96195235-1db3-458b-a25f-d38a48a84291@googlegroups.com> <9cc18ff7-4972-454e-b5c7-a722887bf1db@googlegroups.com> <7e61e43c-594d-4206-ad60-d9d0e6a8490b@googlegroups.com> <9193c2a0-0097-447c-bcc2-dda8e86cb8c1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net zV658mS0iz+7mz/7feMuYQbQxDRk0C1dSX9LfJg5vaGApVj0kt Cancel-Lock: sha1:svH66y+nH9b7zrKFM48kzP9uqn4= In-Reply-To: <9193c2a0-0097-447c-bcc2-dda8e86cb8c1@googlegroups.com> Content-Language: en-US Xref: csiph.com comp.lang.javascript:37695 On 02.11.19 11:57, Jonas Thörnvall wrote: [...] > Maybe one should fuck the dots, paragraphs, blips and blops all together and make a semantical correct language that people could program out of the box. > > if A inside interval 128-144. > if A bigger then B. > if A smaller then B. > if A eual B. > > A=2. > do while A < then B and A length less then 10 > > > A++. > done. > > Maybe i make a parser for javascript one day, javascript has nice features but fucked up syntax/semantics. Go ahead and use COBOL - this should better fit your needs ;-). Seriously - I doubt you will ever do a parser. And the syntax of the examples is are "fucked up": if A inside interval 128-144 Why is "128-144" not an expression but a range here? Why do things to be parsed as expressen "a minus b" and in other cases as "range from a to b"? This is just illogical. On the other hand: if(A>=128 && A<=144) What is "fucked up" here? There is no doubt about the exact meaning and no context specific syntax. And why is "if A bigger then B" better than "if A > B"? What's the problem with comparison operators like ">" or "<" or ">="? -- Arno Welzel https://arnowelzel.de