[Swift-devel] on the semantics of 'array closing'

Ben Clifford benc at hawaga.org.uk
Sat Jun 16 08:10:28 CDT 2007



On Sat, 16 Jun 2007, Mihael Hategan wrote:

> > Thus assignemnt syntax like a[0]=something 
> > becomes illegal and we need more functional language constructs.
> 
> so is the sequence:
> a = 1;
> a = 2;

There's a bug about that open too (actually two, but I closed one of 
them).

> > (its a haskell map in different syntax!)
> 
> However, even python features list comprehensions:
> output_array = [p(i) for i in input_array]

right. Any of the constructs that have the 'expression that returns a 
whole array' property would be ok.

-- 



More information about the Swift-devel mailing list