very important point. power editor users often appreciate having code
formatted in a way that's __not__ compact. for instance
table = {
:t_0 => "zero" ,
:t_1 => "one" ,
:t_2 => "two" ,
:t_3 => "three" ,
}
which vim can format in a keystroke is really nice for being able to butcher
text in a hurry when an editor supports column highlighting. trailing commas
mean cutting and pasting won't yield a syntax error, and the whole mess can be
collapsed into three lines with
table = { #{{{
:t_0 => "zero" ,
:t_1 => "one" ,
:t_2 => "two" ,
:t_3 => "three" , #}}}
}
which shows up in my editor as
table = { +-- 6 lines: -------------------------------------
}
which is both compact AND easy to edit horizontally or verticaly - but you may
not guess it unless you are using folding, column selection and
auto-formatting.
2 cts.
-a
···
On Sat, 28 May 2005, Thomas Kirchner wrote:
* On May 28 10:15, Dr Balwinder S Dheeman (ruby-talk@ruby-lang.org) wrote:
I would prefer keeping the code as compact as possible
Well, that's the problem - you don't always want it as compact as
possible.
--
email :: ara [dot] t [dot] howard [at] noaa [dot] gov
phone :: 303.497.6469
My religion is very simple. My religion is kindness.
--Tenzin Gyatso
===============================================================================