Skip to content

Inline documentation (slot-name initform "docstring") #2

@aartaka

Description

@aartaka

I've been bringing this up here and there, but here's a PR.

I believe it would be an aesthetic and useful change allowing inline documentation in our custom syntax for class definitions, like

(class-star:define-class foo ()
  ((slot-a
    5 "Some number.")
   (slot-b :unbound "Initially unbound slot.")))

This is going to cut some lines of code for short slots and make long slots slightly easier to follow when used to.

But, obviously, it causes quite some trouble for slot parsing, which is already quite complex.

If we agree that this is something we want, I'm ready to prototype this thing with all the caution left in me :P

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions