Re: Python (was Re: Recent history of vi)

2025-12-20 Thread Richard Kettlewell
candycanearter07 writes: > Lawrence D’Oliveiro wrote at 02:05 this Sunday (GMT): >> On 13 Dec 2025 11:55:35 GMT, Stéphane CARPENTIER wrote: >>> Everything else is just a lot of lies. They pretend it's not >>> strongly typed, but in the real world you will only encounter a lot >>> of issue if you

Re: Python (was Re: Recent history of vi)

2025-12-20 Thread rbowman
On Fri, 19 Dec 2025 20:58:10 - (UTC), Lawrence D’Oliveiro wrote: > On Fri, 19 Dec 2025 13:30:03 - (UTC), candycanearter07 wrote: > >> Lawrence D’Oliveiro wrote at 02:05 this Sunday (GMT): >>> >>> Think about why both JavaScript and PHP need a “===” operator, while >>> Python does not. >>

Re: Python (was Re: Recent history of vi)

2025-12-20 Thread c186282
On 12/20/25 05:12, Richard Kettlewell wrote: candycanearter07 writes: Lawrence D’Oliveiro wrote at 02:05 this Sunday (GMT): On 13 Dec 2025 11:55:35 GMT, Stéphane CARPENTIER wrote: Everything else is just a lot of lies. They pretend it's not strongly typed, but in the real world you will only

Re: Python

2025-12-20 Thread c186282
On 12/19/25 14:38, rbowman wrote: On Fri, 19 Dec 2025 03:30:56 -0500, c186282 wrote: The ed in Midnight Commander is a bit better, AND you can use it easily over SSH. Back in the days of DJGPP https://en.wikipedia.org/wiki/DJGPP I ported MC back to Windows, from whence it came as a

Re: Python

2025-12-20 Thread Carlos E.R.
On 2025-12-18 15:40, Peter Flass wrote: On 12/17/25 20:10, c186282 wrote: On 12/17/25 14:17, rbowman wrote: On Wed, 17 Dec 2025 03:11:09 -0500, c186282 wrote: Probably 50% of the text in my code - doesn't matter which lang - is 'comments'. I looked at some of my code and it's pretty much co

Re: Python (was Re: Recent history of vi)

2025-12-20 Thread Dan Sommers
On 2025-12-20 at 10:12:49 +, Richard Kettlewell wrote: > When you define your own classes, you can arrange for them to perform > arithmetic with other types without explicit conversions too. Assuming that you mean that I can define my own class that implements a dunder method like __add__, t

Re: Python (was Re: Recent history of vi)

2025-12-20 Thread rbowman
On Sat, 20 Dec 2025 10:12:49 +, Richard Kettlewell wrote: > I would say that although Python does have some aspects of strong > typing, it is mostly weakly typed. Type hints sort of address that. Like TypeScript there is a temptation to say 'foo: Any' to preserve duck typing. -- https://ma

Re: Python

2025-12-20 Thread rbowman
On Sat, 20 Dec 2025 04:01:01 -0500, c186282 wrote: >I load MC on EVERYTHING by default - and it COMES IN USEFUL more than >enough to be worth it. I'll take your word for it. I haven't used in a couple of decades and only vaguely remember how it works. It's safe to say I'm not feeling a b

Re: Python (was Re: Recent history of vi)

2025-12-20 Thread rbowman
On Sat, 20 Dec 2025 05:25:25 -0500, c186282 wrote: >Well, I kind of liked PICK system ... everything was equal, always >represented as a string. Numbers, chars, whatever - instantly/easily >converted between each other. >NO 'types'. iirc Perl had 5 copies of a scalar just in case