« Return to Thread: Another formatting question: function types

Re: Another formatting question: function types

by Geoff Reedy :: Rate this Message:

Reply to Author | View in Thread

I've been writing

On Wed, Jun 10, 2009 at 11:56:35AM -0700, Bill Venners said
> 1. Do you want spaces around the => or not? Here is with spaces:
>
> (String, Int) => Unit

this

> Here it is without:
>
> String => Unit

and this

> 3. Lastly, anything else you like to see?

Prerences for by-name parameters too:

=>Foo

vs

=> Foo

Curiously I have a slight preference for no space here, even though I
use one for other function types.

>
> Thanks.
>
> Bill
> ----
> Bill Venners
> Artima, Inc.
> http://www.artima.com

 « Return to Thread: Another formatting question: function types