[Grace-core] Layout rules for Grace

Kim Bruce kim at cs.pomona.edu
Wed Feb 1 09:29:33 PST 2012


Gee, I like speed: aNumber.

Do we really need to set layout rules at this level of detail?  Why don't we just worry about indenting and not spacing or we'll drive everyone crazy.

Kim



On Feb 1, 2012, at 3:10 AM, James Noble wrote:

>> Herewith is a first cut at layout rules for Grace.  
> 
> great - although I wonder if this (or at least the next iterations)
> would go better on the Wiki (or svn?) than very many emails.
> 
>> 
>> • The : that introduces a type annotation shall not have spaces before or after
>> 	Example:     speed:aNumber
> 
> so far, I've almost always done the direct opposite:  "speed : Number" 
> 
> one variant I'm not that keen on is the Scala style "speed: Number"
> perhaps because it looks too much like Smalltalk (but means something very different)
> and because, well, as David Pearce has said, why not then just follow Go "speed Number"
> and omit the colon?
> 
> James
> _______________________________________________
> Grace-core mailing list
> Grace-core at cecs.pdx.edu
> https://mailhost.cecs.pdx.edu/mailman/listinfo/grace-core



More information about the Grace-core mailing list