Whiley / WhileyCompiler

The Whiley Compiler (WyC)
http://whiley.org
Apache License 2.0
217 stars 36 forks source link

Invalid block comments #756

Open BaptP opened 7 years ago

BaptP commented 7 years ago

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.

DavePearce commented 6 years ago

This article is worth a read on the subject:

https://futhark-lang.org/blog/2017-10-10-block-comments-are-a-bad-idea.html