[Swift-user] Re: a third tutorial question

Daniel S. Katz dsk at ci.uchicago.edu
Thu Oct 14 16:25:24 CDT 2010


Ok, thanks - it would probably be good to be consistent in the examples and the tutorial web page that lists the examples.

Dan


On Oct 14, 2010, at 3:46 PM, Mihael Hategan wrote:

> On Thu, 2010-10-14 at 12:42 -0500, Daniel S. Katz wrote:
>> Similarly, I notice that the type declaration of messagefile as a marker type (I think) has two forms.
>> 
>> In first.swift, I see:
>> 
>> type messagefile;  
>> 
>> In parameter.swift (the version in the swift repository), I see:
>> 
>> type messagefile {} 
>> 
>> In the Swift user guide when this concept is brought up, the first style is used.  Also, parameter.swift in the tutorial html page has the first format, even though the on-line code has the second format.
>> 
>> Does this matter?
> 
> No.
> 
>>  Which is preferred and why?
> 
> while (true) ;
> while (true) {}
> 
> i.e. it is the programmer's preference.
> 
> Mihael
> 

-- 
Daniel S. Katz
University of Chicago
(773) 834-7186 (voice)
(773) 834-3700 (fax)
d.katz at ieee.org or dsk at ci.uchicago.edu
http://www.ci.uchicago.edu/~dsk/







More information about the Swift-user mailing list