Archive for December 2011
“Syntax Matters”
Compare the following code with the one in the previous post (they do the same thing):
parallel/or do
loop do
await 250ms;
emit Leds_led0Toggle();
end;
with
loop do
await 500ms;
emit Leds_led1Toggle();
end;
with
loop do
await 1000ms;
emit Leds_led2Toggle();
end;
end;
I realized that syntax really matters after teaching Céu as an alternative to nesC in two courses this year.
The new syntax is more verbose and less flexible, but way more readable.