From: Kyle Lemons <kev...@google.com>
Date: Thu, 24 May 2012 15:07:45 -0700
Local: Thurs, May 24 2012 6:07 pm
Subject: Re: [go-nuts] Re: go fmt and multi-line conditionals
On Thu, May 24, 2012 at 2:14 PM, Kevin Ballard <kball...@gmail.com> wrote:
Please no. I see that for function argument indentation for some
> Yes, that's what I'm suggesting. It keeps the conditional visually grouped. languages, and it often ends up with about 10 characters of leeway *on every subseqent line*. > -Kevin
> On Thursday, May 24, 2012 at 1:09 PM, Paul Borman wrote:
> So with something like:
> <TAB>if value, err := something.Method(buffer, source); err == nil &&
> you would end up with
> <TAB>if value, err := something.Method(buffer, source); err == nil &&
> ?
> On Thu, May 24, 2012 at 1:00 PM, Kevin Ballard <kball...@gmail.com> wrote:
> On Thursday, May 24, 2012 at 8:32 AM, Paul Borman wrote:
> Do forget other cases:
> } else if A && B ... {
> if statement; A && B ... {
> And so on. There coud be an entire heuristics paper on how best to format
> The solution I'm proposing still fits here. Just one rule: "continued
> On Thursday, May 24, 2012 at 2:17 AM, Reynir Reynisson wrote:
> Some people might use a three space wide tabstop.
> Then those people can live with having their conditionals visually line up
> Either we use >1 tab (or tap + spaces) to indent subsequent lines, which
> -Kevin
> -Paul
> On Thu, May 24, 2012 at 8:23 AM, Norbert Roos <nr...@webware-experts.de>wrote:
> On 05/24/2012 11:17 AM, Reynir Reynisson wrote:
> if conditionA&&
> Some people might use a three space wide tabstop.
> ... which would result in
> if conditionA&&
> Norbert
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||