coding style query

41 views
Skip to first unread message

Hendrik Boom

unread,
May 27, 2020, 1:56:44 PM5/27/20
to Racket Users
Is there an accepted convention about how to use a symbol used in a
program within a comment so it's clear the comment is using it as a
program symbol and not as an ordinary English word?

-- hendrik

Jens Axel Søgaard

unread,
May 27, 2020, 2:04:39 PM5/27/20
to Racket Users

Not sure. Sometimes I surround the symbol with two spaces to each side instead of just one. 
Can't remember where I picked that habit up.

/Jens Axel
https://racket-stories.com

Laurent

unread,
May 27, 2020, 2:14:43 PM5/27/20
to Jens Axel Søgaard, Racket Users
I use markdown syntax for that:
The function `function` functions like `functions` but for a single function `proc`.

I've seen others use `function' instead.

--
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CABefVgyY%3DGY%2BO3333TNxfEZLkaZaqpZi%3DGF6%3DVgrPThRJoY7_g%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages