ECMAchine icon indicating copy to clipboard operation
ECMAchine copied to clipboard

Docstrings?

Open davep opened this issue 12 years ago • 5 comments

Less of an issue, more of a suggestion.

Seeing the help text slowly grow, I'm wondering if it might be an idea to add emacs-a-like docstrings to the system. Not only would that keep the documentation with each function, it'd also allow the help command deliver help on specific functions and variables.

davep avatar Apr 03 '12 08:04 davep

This is a good idea, but it will probably have to wait until actual strings (as opposed to quoted lists) are supported.

AlexNisnevich avatar Apr 03 '12 09:04 AlexNisnevich

Ahh, good point, I didn't think about that. :)

davep avatar Apr 03 '12 09:04 davep

I've just added support for strings in the latest commit. It might still be buggy, but something like

(js-apply 'alert "Hello world!")

now works as expected.

AlexNisnevich avatar Apr 06 '12 22:04 AlexNisnevich

Nice. This means that there's now enough for me to try something I've been wanting to try.

Meanwhile, do you want any and all string bugs reported, or is it a little too early for that?

davep avatar Apr 06 '12 22:04 davep

Go for it!

AlexNisnevich avatar Apr 06 '12 23:04 AlexNisnevich