On 7/6/12, Alan Manuel Gloria <[email protected]> wrote:
> Here we discuss the " '.' as indentation whitespace proposal"
>
> Pros:
>
> 1.  It is useful for cases when we need to send code snippets by HTML
> e-mail transport, which tends to cut off "real" whitespace.
> 2.  It can be used to highlight indentation for whatever purpose that may
> serve.

To illustrate #2, consider the following contrivedly complicated code
(but I think you'd end up with similarly complicated code after
developing a project for a while).


define foo(x)
  define bar(y z)
  . let
  .   \
  .   . quux  frobnicate(y z)
  .   . quuux frobnicate(z y)
  .   complicate
  .     {quux *<=>* quuux}
  .     frobnicate(quux)
  .     cond
  .       {quux >=< quuux}
  .         1
  .       #t
  .         2
  define frobnicate(a b)
  . {
  .  {a + {{b - a} * 100}}
  .  /
  .  {b - a}
  . }
  define
  . \ complicate
  .   . a
  .   . b
  .   . c
  . cond
  . . {a >=< b}
  . .   a
  . . {b >=< c}
  . .   b
  . . #t
  . .   c
  define {a >=< b}
  . {
  .  {frobnicate(a b) < frobnicate(a 1)}
  .  or
  .  {frobnicate(b a) < frobnicate(b -1)}
  . }
  define {a *<=>* b}
  . { {a + b} / {a - b - 100 } }
  ;
  ;
  bar(x {x + 1000})

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Readable-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to