emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Naming FCRs


From: Stefan Monnier
Subject: Re: Naming FCRs
Date: Mon, 27 Dec 2021 13:55:07 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Dmitry Gutov [2021-12-27 00:29:29] wrote:
> On 27.12.2021 01:04, Stefan Monnier wrote:
>> - Monomaniac objects (since they're a bit like OO-style objects but
>>    limited to have only exactly one method).
> A function with a value attached sounds like a "method".

Hmm... in my mind a method is more like a function attached to a (set
of) objects.

> Not too fun, though.

There's a fair bit of potential by playing with the "meth" prefix, I think.

> I also looked at the branch briefly -- if it's what it sounded like then you
> might be setting up a new "Callable protocol" which can allow any object to
> serve as a function, not just records? Like how maps are callable
> in Clojure.

Not really.  It's more about adding object characteristics to functions than
adding function characteristics to objects.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]