[Grace-core] Comment proposal
Kim Bruce
kim at cs.pomona.edu
Wed Feb 4 17:11:01 PST 2015
I could live with either of these. At this point I lean more toward the second, but could live with the more restrictive second.
Checking where ";" can go in Grace, the following program is legal only if print(x) is indented to the right of ;
var x: Number := 3
while {false} do {;
print(x)
};
Odd, especially when the following is fine:
while {false} do {x := x + 3;
print(x)
};
Kim
>>
>> I like Lex's proposal of specifying where comments can go, and what they mean. Something like:
>>
>> • at the end of a line, (but not at the end of a continuation that is continued on the following line).
>> Such comments attach to the first declaration or expression on that line.
> Is this the same as "may appear where a semicolon could, and attaches
> to the preceding statement or declaration", or is it "may appear at
> the end of the first physical line of a continuation-line sequence,
> and attaches to the whole sequence"?
> -Michael
>
> _______________________________________________
> Grace-core mailing list
> Grace-core at cecs.pdx.edu
> https://mailhost.cecs.pdx.edu/mailman/listinfo/grace-core
More information about the Grace-core
mailing list