[typo] A matter of style

Nicholas Van Weerdenburg vanweerd at gmail.com
Tue Sep 27 17:11:44 EDT 2005


On 9/27/05, Scott Laird <scott at sigkill.org> wrote:
>
> On Sep 27, 2005, at 10:13 AM, Piers Cawley wrote:
> >
> > Yeah, but then I like rectangular arg blocks when they're
> > parenthesized
> >
> >   object.method(arg1, arg2, arg3,
> >                 arg4, arg5, arg6)
> >
> > Which doesn't do much for shortening lines.
> >
> >   object \
> >     .method(arg1, arg2, arg3, arg4, arg5, arg6)
>
> I hate trailing backslashes.  This looks cleaner to me:
>
>    object.
>      method(arg1, arg2, arg3, arg4, arg5, arg6).
>      anothermethod().
>      somethingelse
>
> I see how this could be confusing to some people, though.
>
>
> Scott
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list
>

I'm quite fond of the style in Rails book.

e.g.
find(:all,
      :conditions => "asfasdf",
      :order        => "asdfasdf")


validates_format_of  :image_url,
                              :with => .....,
                              :message => ....


--
Nicholas Van Weerdenburg



More information about the Typo-list mailing list