[Swift-user] fourth tutorial question

Daniel S. Katz dsk at ci.uchicago.edu
Thu Oct 14 10:53:47 CDT 2010


Looking at manyparam.swift, the following seems painful:


messagefile english <"english.txt">;  
messagefile french <"francais.txt">;  
english = greeting("hello");  
french = greeting("bonjour");  
  
messagefile japanese <"nihongo.txt">;  
japanese = greeting("konnichiwa");


It seems like it would be much nicer to be able to write:


<"english.txt"> = greeting("hello");  
<"francais.txt"> = greeting("bonjour");  
<"nihongo.txt"> = greeting("konnichiwa");


But it appears this doesn't work.  Is there some reason this can't be done, or is this just a limitation in Swift?

Dan

-- 
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/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20101014/7efbb511/attachment.html>


More information about the Swift-user mailing list