[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Colorize objects by method dispatch type
From: |
Stefan Monnier |
Subject: |
Re: Colorize objects by method dispatch type |
Date: |
Thu, 02 Apr 2020 08:56:23 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> You mean you want to take a hash of the actual code?
>> That will change when the code is tweaked, so I don't think you're going
>> to like that.
>
> Not necessarily the code, better would be a reference to the code, or
> the entry point of the code, if something like that is available.
I must be missing something: you do want to get some sort of a hash, right?
And you do want that hash to be stable over time, so you can get used to
which color corresponds to what, right?
Hashing a reference will not give you a stable result.
As for "entry point", I don't really what that would be but it doesn't
sound like it'd be something that results in a stable hash either.
Also it's not clear to me exactly which part of `type-of` you don't like.
Stefan