janet-lang / janet-lang.org

Website for janet
https://janet-lang.org
MIT License
90 stars 59 forks source link

Add some jpm declare- docs (#34, #209) #212

Closed sogaiu closed 5 months ago

sogaiu commented 7 months ago

This PR is an attempt to address #34 and #209.

It adds a new section to the jpm page that contains some docs for the following declare- callables:

I have seen each of these used in at least one project [1], so it seemed worth doing.

I based the added docs on the docstrings found in jpm's declare.janet. I made some changes though because some things didn't seem right or there seemed to be missing bits.

Also snuck in a minor formatting change to a code example. I hope that can be forgiven (^^;


[1] I did not add a docstring for one other construct I found in jpm's declare.janet because I have not encountered a single project that uses it.