WhileyCompiler
WhileyCompiler copied to clipboard
Invalid block comments
When using the following comment structure (that enables to switch commented lines easily),
function comments(int a, int b) -> int:
//*
a = a + 1
/*/
b = b + 1
//*/
return a+b
the second statement is not parsed as a comment.
This article is worth a read on the subject:
https://futhark-lang.org/blog/2017-10-10-block-comments-are-a-bad-idea.html