[Swift-devel] app names with "-"

Mihael Hategan hategan at mcs.anl.gov
Wed Apr 25 13:47:42 CDT 2007


On Wed, 2007-04-25 at 13:44 -0500, Veronika V. Nefedova wrote:
> I did a typo in the name of the procedure: I typed "test-in" instead of 
> "test_in". And started to get a lot of syntax errors. Apparently the "-" is 
> not allowed in swift names?
> I did a quick test, and it [proved that swift doesn't like the "-":
> 
> type file {}
> (file f) ec-ho (string s) {
>      app {
>          echo s stdout=@filename(f);
>      }
> }
> file f <"testoutput">;
> f=ec-ho("BLA");
> 
> And this wouldn't compile while it would compile just fine when you do 
> s/ec-ho/echo/g
> This is probably not right.

I think it's fairly reasonable to have operators not be valid identifier
characters.

> 
> Nika
> 
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
> 




More information about the Swift-devel mailing list