jscl-project / jscl

A Lisp-to-JavaScript compiler bootstrapped from Common Lisp

Home Page:https://jscl-project.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DEFSTRUCT docstrings + DOCUMENTATION 'TYPE

Uthar opened this issue · comments

ABCL:

CL-USER(1): (defstruct foo "it's a foo")
FOO
CL-USER(2): (documentation 'foo 'type)
"it's a foo"

JSCL:

CL-USER> (defstruct foo "it's a foo")
ERROR:  "it's a foo" is not a legal slot description.
CL-USER> (documentation 'foo 'type)
ERROR: ECASE expression failed for the object `TYPE'.
commented

Thanks for the feedback.
Support for this option was not originally provided due to infrequent use.
In a future update, there is an intention to bring docstring support to both structs and classes