Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Tomas Hajny via fpc-pascal
On 2025-02-24 12:44, Michalis Kamburelis via fpc-pascal wrote: Karoly Balogh wrote: . . 3. Discussions whether language X is good or bad should be an independent discussion, in an independent thread(s), IMHO. Because . . ...and a different mailing list (in particular, fpc-other). Tomas

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Tomas Hajny via fpc-pascal
On 2025-02-24 11:22, Arne Hanssen via fpc-pascal wrote: Den 24.02.2025 09:27, skreiv Karoly Balogh via fpc-pascal: On Sat, 22 Feb 2025, DougC via fpc-pascal wrote: Hi, [...] As a former OS/2 user I find REXX (Regina Rexx nowadays) very versatile and useful - and easy to learn.  But you're

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Mattias Gaertner via fpc-pascal
On 2/21/25 12:04, Anthony Walter via fpc-pascal wrote: [...] Javascript: let data = { name: "James", age: 25 }; function update(name) { data.name = name; } function verify(note) { console.log("received note " + note); console.log("data name is " + data.name); hello(data, " messa

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Michalis Kamburelis via fpc-pascal
Karoly Balogh wrote: > We're in the offtopic again, but I really hate this kind of elitism. As a > kid I started with BASIC - on various Commodore home computers then also > on early IBM PCs - and I hope to think I grew up to be a semi-decent > programmer. At least I can fix your Pascal compiler fo

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Arne Hanssen via fpc-pascal
Den 24.02.2025 09:27, skreiv Karoly Balogh via fpc-pascal: Hi, On Sat, 22 Feb 2025, DougC via fpc-pascal wrote: Why not? Because it helps a distinctly inferior language design to perpetuate. It used to be said that any programmer that first learned to program using BASIC was ruined for life.

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Karoly Balogh via fpc-pascal
Hi, On Sat, 22 Feb 2025, DougC via fpc-pascal wrote: > Why not? Because it helps a distinctly inferior language design to > perpetuate. > > It used to be said that any programmer that first learned to program > using BASIC was ruined for life. I would say the same thing about > Javascript.  We'r

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-23 Thread Travis Siegel via fpc-pascal
I'm not a fan of javascript myself, but I see nothing wrong with having it as an option.  It's never bad to have another tool in the toolbox.  I can see situations where it would be useful.  I'd not be likely to use it, because javascript isn't my thing, but I certainly can easily point to proj

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-22 Thread DougC via fpc-pascal
Why not? Because it helps a distinctly inferior language design to perpetuate. It used to be said that any programmer that first learned to program using BASIC was ruined for life. I would say the same thing about Javascript.  Doug C. On Fri, 21 Feb 2025 17:46:49 -0500 wrote ---

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-21 Thread DougC via fpc-pascal
I am also allergic to javascript! Consider Lua instead. Doug C. On Fri, 21 Feb 2025 07:35:39 -0500 Alexey T. via fpc-pascal wrote --- Scripting is good thing. But I hate JS. No mandatory quotes around dict keys. Arrow functions which are sugar and not needed. etc etc. I sugg

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-21 Thread Alexey T. via fpc-pascal
Scripting is good thing. But I hate JS. No mandatory quotes around dict keys. Arrow functions which are sugar and not needed. etc etc. I suggest to use Python. Python-for-Lazarus is in the github. I like Python! Alexey ___ fpc-pascal maillist - fpc-pa

[fpc-pascal] Adding Javascript to Pascal

2025-02-21 Thread Anthony Walter via fpc-pascal
Greetings all, I am working on a project that needs scripting and I've decided to make use of Fabrice Bellard's awesome QuickJS library. I am considering making it nice to use for the rest of the Free Pascal user community by implementing an interesting way of integrating Javascript that would mak