Re: Feature request: Ability to document variables like defvar in elisp

2022-11-05 Thread Jacob Hrbek
To clarify I don't want to set the docstring to the value, but to the **variable name** like elisp, defining the docstring to the value seems insane to me. First of all can we agree that the proposed syntax is a good idea that we want implemented?: (define variable value docstring)

Re: Feature request: Ability to document variables like defvar in elisp

2022-11-04 Thread Jean Abou Samra
Le 02/11/2022 à 11:15, Mikael Djurfeldt a écrit : (define a 5) (set-object-property! (module-variable (current-module) 'a) 'documentation "The variable a contains a number.") ? Why not, but I wanted to point out that variable documentation cannot be done in a way that is consistent with pro

Re: Feature request: Ability to document variables like defvar in elisp

2022-11-02 Thread Mikael Djurfeldt
(define a 5) (set-object-property! (module-variable (current-module) 'a) 'documentation "The variable a contains a number.") ? On Wed, Nov 2, 2022 at 9:29 AM Jean Abou Samra wrote: > Le 02/11/2022 à 02:08, Jacob Hrbek a écrit : > > The ability to document variables is critical for many projects

Re: Feature request: Ability to document variables like defvar in elisp

2022-11-02 Thread Jean Abou Samra
Le 02/11/2022 à 02:08, Jacob Hrbek a écrit : The ability to document variables is critical for many projects such as libfive where the variables is used to declares functional computer aided design structure and other projects where variables influence the workflow. Thus proposing to change t