Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Set the highlight color of your () to white. Solved.


I set my editor to highlight my parens not de-emphasize so I can get a better picture of the structure of my code at a glance.


Why are people up-voting this? This is a recipe for bugs.


I think (hope) that it was meant to be funny as opposed to being a serious advice.


I've done this with Ruby and set the color to light gray. My co-workers wanted to have C/Java-style parens around damn near everything (except when they didn't; the reasoning to omit them was something along the lines of, "But, see, here it's a DSL." )

They strike me as line noise and make it harder to read many things, so I lightened up the color in my vim syntax files to give the appearance of more white space.

I had mixed results. Yes, it was far more readable to me, but there were times when a paren was missing or mistakenly added, or the spacing was off (another coding standard violation), and so on.

Now that I code on my own, the new coding standards say no parens unless required by the language. I also changed my syntax coloring back to more clearly show parens.


Heated debates amongst programmers (coworkers) about marginally important questions such as indenting styles, parenthesis usage, naming conventions, source code directory structure, etc. are always very amusing to observe. I usually sit back and just watch the show.


"I usually sit back and just watch the show."

Were that always an option. :)


Oh right. I get it now :-)


Light gray, then ;-P

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.


Some IDEs (Alegro CL, cusp eclipse) display the arguments for all known forms and functions.


s/some/all/g

Nearly every Lisp development environment does that. SLIME, the poster child of excess does this as well. I don't think I matched parenthesis, indented or looked up a documentation since 2005.


Doesn't help you if what you are trying to do is read code, rather than write it.


Perhaps we should go the Haskell route instead of the Python one?


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)))


thanks!


DrScheme (PLT scheme's IDE) automatically translates [ and ] to ( and ) where appropriate. It's very handy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: