Deutsch   English   Français   Italiano  
<vamd0s$3c4ke$3@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.os.vms
Subject: Re: New VSI post on Youtube
Date: Wed, 28 Aug 2024 05:36:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <vamd0s$3c4ke$3@dont-email.me>
References: <vadndu$1igfq$1@dont-email.me>
	<memo.20240827134054.19028g@jgd.cix.co.uk> <valhi8$34s18$4@dont-email.me>
	<valpf6$3614m$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Aug 2024 07:36:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="52d1e1001450c2fe7f8121ab25cdb228";
	logging-data="3543694"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19zHU5NQDTkL5zvXjL8mgPZ"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:gJuApL11ZfCNTlUxL3aEvQpo9JA=
Bytes: 2492

On Tue, 27 Aug 2024 20:02:46 -0400, Arne Vajhøj wrote:

> On 8/27/2024 5:47 PM, Lawrence D'Oliveiro wrote:
>>
>> On Tue, 27 Aug 2024 13:40 +0100 (BST), John Dallman wrote:
>>>
>>> In article <vadndu$1igfq$1@dont-email.me>, ldo@nz.invalid (Lawrence
>>> D'Oliveiro) wrote:
>> 
>> You never had functions and classes as first-class objects in BASIC or
>> COBOL; you do in Python. You never had metaclasses in those languages;
>> you do in Python. You never had custom operator overloads in those
>> languages; you do in Python.
> 
> I suspect that he was more thinking philosophy than specific syntax and
> functionality.

So was I. The one is definitely a reflection of the other.

> Also note that those languages has also evolved.

And they had more time to do so. But they are still behind Python.

> VB.NET has classes, lambdas and operator overload. Python metaclass does
> not have a direct equivalent in VB.NET but AppDomain, compiler services
> and extension methods should together provide similar functionality.

You know how in Python, you can instantiate OSError to report an OS
error code, and it automatically turns into the appropriate subclass
(e.g. FileNotFoundError) depending on the error code? These happen to
be built-in classes, but with metaclasses, you can do the same thing
with your own class hierarchy.

<https://gitlab.com/ldo/python_topics_notebooks/-/blob/master/Uses%20For%20Metaclasses.ipynb>