Set the highlight color of your () to white. Solved.
Why are people up-voting this? This is a recipe for bugs.
Lisp without parentheses: Lisp INdented
11–20 of 45 posts
Re: Lisp without parentheses: Lisp INdented
#12Set the highlight color of your () to white. Solved.
Why are people up-voting this? This is a recipe for bugs.
Srsly, looking past the brackets is the least problem in reading lisp. The harder part is dealing with the lack of syntax, so you have to remember place structures instead of picking up hints from the punctuation. And in that regard, Pythonic indenting makes it harder.
Re: Lisp without parentheses: Lisp INdented
#13Re: Lisp without parentheses: Lisp INdented
#14Hm, this feels like comitting hara-kiri, but I actually found the eight queens sample: http://www.genyris.com/wiki?page=default/eightqueenssource A lot more readable than the 'regular' lisp version: http://obereed.net/queens/algorithm.html By automating the process of converting between 'indented' lisp and 'regular' lisp those that want it can have it and those that do not can simply ignore it.
Re: Lisp without parentheses: Lisp INdented
#15http://users.rcn.com/david-moon/PLOT/
See how he does macros for a syntax-full language :-)
Re: Lisp without parentheses: Lisp INdented
#16Hm, this feels like comitting hara-kiri, but I actually found the eight queens sample: http://www.genyris.com/wiki?page=default/eightqueenssource A lot more readable than the 'regular' lisp version: http://obereed.net/queens/algorithm.html By automating the process of converting between 'indented' lisp and 'regular' lisp those that want it can have it and those that do not can simply ignore it.
True, having a round trip to Lisp's standardized format might make this usable. I have to wonder how much of Ruby's success is owed to being unable to trivially share Python code with strangers without most of our tools shredding the whitespace.
It also can make debugging such a problem hell because you have to completely grok the code in order to spot the fact that the last line of a code block has somehow mysteriously jumped left 4 spaces.
And it makes refactoring code a major pain.
Braces rule compared to spaces.
Re: Lisp without parentheses: Lisp INdented
#17Re: Lisp without parentheses: Lisp INdented
#18Set the highlight color of your () to white. Solved.
P.S. Not keyboard mapping please.
Re: Lisp without parentheses: Lisp INdented
#19Re: Lisp without parentheses: Lisp INdented
#20Set the highlight color of your () to white. Solved.
is there a way to interchange ( to [ ? I have RSI. P.S. Not keyboard mapping please.
(defun square-bracket-reader (stream char)
(declare (ignore char))
(read-delimited-list #\] stream t))
(defun use-square-bracket-readtable ()
(set-macro-character #\[ #'square-bracket-reader)
(set-macro-character #\] (get-macro-character #\) nil)))