[Swift-devel] mapper syntax

Mihael Hategan hategan at mcs.anl.gov
Tue Jul 3 13:01:47 CDT 2007


On Tue, 2007-07-03 at 23:23 +0530, Ben Clifford wrote:
> The syntax:
> 
>   imagefiles if[] 
> <my_mapper;foo=@strcat(filename,blah),otherparm=true,moreparams=false>;
> 
> is rather noisy all on one line.
> 
> A syntax change could be to express the above as:
> 
>   imagefiles if[] map my_mapper {

What if "map" be replaced by some operator (":", "~", "#")?

>     foo = @strcat(filename,blah);
>     otherparam = true;
>     moreparams = false;
>   };

The semicolon should not be required after a '}'.

> 
> 




More information about the Swift-devel mailing list