[Swift-devel] mapping and assignment in one statement.

Ben Clifford benc at hawaga.org.uk
Wed Jan 28 07:37:50 CST 2009


At present, declarations and assignments are documented as:

   typename variablename (<mapping> | = initialValue ) ;  

That is, you can declare:

  file f <"foo">;           (1)
or
  file f = p();             (2)

but not:
  file f <"foo"> = p();     (3)

I think given the way the language has evolved recently that we should 
permit 3 - the implementation now should not make that hard at all, and it 
will not break any existing program.

-- 




More information about the Swift-devel mailing list