Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 40706 invoked from network); 12 Nov 2009 14:40:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Nov 2009 14:40:05 -0000 Received: (qmail 98603 invoked by uid 500); 12 Nov 2009 14:40:05 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 98585 invoked by uid 500); 12 Nov 2009 14:40:05 -0000 Mailing-List: contact esme-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: esme-dev@incubator.apache.org Delivered-To: mailing list esme-dev@incubator.apache.org Received: (qmail 98575 invoked by uid 99); 12 Nov 2009 14:40:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 14:40:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of feeder.of.the.bears@gmail.com designates 209.85.217.225 as permitted sender) Received: from [209.85.217.225] (HELO mail-gx0-f225.google.com) (209.85.217.225) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 14:39:53 +0000 Received: by gxk25 with SMTP id 25so2343003gxk.0 for ; Thu, 12 Nov 2009 06:39:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=F1BpV25axUFcm71KVhg0DVkH/+INvFbN+yBn763nLqA=; b=MEpihDnrls3yOVzMnRCIx//v10Cm3tiqaaFrS1vV1bb8vsyn3Qwx8k8u2Sp6bKivIu wBGELbQDRSwhDyWTsjDPjIpNS4szD53hhTyzn0HMyAa6Lo9k+uc1UGdv8Nevkye61xnj iKVjk9XqIGvKXa358dyfFAmL3tPRXy/rq/cpA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bvZW8AYJcXif7iB6lYOHWVP988jx+RBorVZDGaGkkHPcY0tWltHnU1npS0Yzgl20ye Pla+RacrBSV/hJI3fsikH1owmlE6+5RucJ7TaktJwVlRsahmpzrzQ8EL7s6EzL88f0Y/ glxNAV65Bhesm0Z8jZkpUfz90FNCZbnFwfILI= MIME-Version: 1.0 Received: by 10.90.41.29 with SMTP id o29mr4531369ago.101.1258036772306; Thu, 12 Nov 2009 06:39:32 -0800 (PST) In-Reply-To: References: Date: Thu, 12 Nov 2009 06:39:32 -0800 Message-ID: Subject: Re: Scala style guide From: David Pollak To: esme-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=0016361e83daed816304782d825a X-Virus-Checked: Checked by ClamAV on apache.org --0016361e83daed816304782d825a Content-Type: text/plain; charset=UTF-8 On Thu, Nov 12, 2009 at 4:41 AM, Richard Hirsch wrote: > What about doing the formatting in two steps. The first step is > automatic and includes dealing with stuff like identing and creating > empty method headers. You could probably use existing IDE formatters > for that. The second step would be the manual process and would > reflect the Style Guide suggestions. > I'm thinking that the style guide's recommendations will likely be integrated with IntelliJ 9's Scala plugin. Ilya has been looking for something to build his code formatter on and I think this document may provide the best guide for him. If we can build new code going forward based on the style guide and then "backport" the rest of the code when the tooling is available, I think that may be the best use of resources. Thanks, David PS -- I think the style guide is stellar! > > D. > > On Thu, Nov 12, 2009 at 1:30 PM, Vassil Dichev wrote: > >> Took a look at the guide and it looks good. The question is: do we > >> wait for code beautifier that is based on the guide or do we do format > >> our code ourselves? > > > > I'm not sure there's a non-interactive code beautifier which we can > > configure (formatting in IDEs hardcodes many configurations). Besides, > > since Scala syntax is still a moving target, I'm not sure anyone has > > focused on creating such a beautifier just yet. In a word: we should > > format ourselves. > > > > But a great idea for a hobby project ;-) > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --0016361e83daed816304782d825a--