[racket] Racket/class, inherit-field all
> classes in Racket are themselves *runtime* values
Thank you. Now I understand. I don't remember any language with classes, except Racket with such feature.
Usually, either a class is a type, so it is defined in compile-time, or there no classes at all and objects just built on a prototype.
In Racket any type is a struct, but class is not a struct.
Thu, 03 Apr 2014 08:06:01 -0400 от "David T. Pierson" <dtp at mindstory.com>:
>On Tue, Apr 01, 2014 at 09:07:01PM +0400, Roman Klochkov wrote:
>> But may I at least look in compile time what fields the class have?
>
>I'm not particularly knowledgable about classes, but...
>
>I think the answer is "no". That is what Matthias was showing with his
>answer.
>
>One thing that I didn't see explicitly mentioned is that classes in
>Racket are themselves *runtime* values. With respect to your question,
>I suspect that is the key difference compared to structs. Someone
>besides me would be more capable to elaborate further, or point us to
>the portion of the docs which explain it.
>
>David
>____________________
> Racket Users list:
> http://lists.racket-lang.org/users
--
Roman Klochkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140403/2cf263c5/attachment-0001.html>