Inline code in the docs - the correct way

Steven Schveighoffer schveiguy at yahoo.com
Mon Feb 5 14:50:38 UTC 2018


On 2/5/18 1:27 AM, H. S. Teoh wrote:
> On Sun, Feb 04, 2018 at 02:34:31PM -0500, Steven Schveighoffer via Digitalmars-d wrote:
> [...]
>> I don't have a hard time with braces. It tends to be worse with
>> parentheses.  Generally these are indented properly, and not }}}}} all
>> on one line.
> 
> Wait till you see Lisp code. :-P

I still have nightmares from my scheme class in college... Literally the 
professor would be up at the whiteboard scribbling a scheme function, 
and at the end, he would draw a whole bunch of closing parentheses in a 
row, reciting the opening parentheses for each one "car, cdr, ..."

I also have seen people's code who DID put all their closing braces on 
one line. It was... awful.

-Steve


More information about the Digitalmars-d mailing list