[Grace-core] minor language issues
James Noble
kjx at ecs.vuw.ac.nz
Mon May 18 14:39:52 PDT 2015
>> or should we write it x.foo foo
>>
>> (note that the current syntax does NOT support this!)
>
> Note also that this entire paragraph (and, in fact, perhaps the
> majority of prose text! I'm not sure) would be syntactically valid
yes i know…
> it lets you copy more fourteenth-century
> Italian poetry into your exams verbatim, so there's that)
well I might have done that, but only once, surely.
>> x.foo( "A", "B") stuff [1, 2, 3]
>> x.foo( "A", "B") stuff [1]
>> x.foo( "A", "B") stuff []
> This version is not syntactically compatible with indexing operators,
> so you'd have to choose one or the other.
spaces would be significant - that’s the downside.
so «stuff[2]» is indexing, while «stuff [2]» is a method taking a literal argument
just as «stuff<T>» is generic but «stuff < 2» is a comparison
J
More information about the Grace-core
mailing list