WhileyCompiler icon indicating copy to clipboard operation
WhileyCompiler copied to clipboard

Invalid block comments

Open BaptP opened this issue 8 years ago • 1 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.

BaptP avatar Jul 18 '17 21:07 BaptP

This article is worth a read on the subject:

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

DavePearce avatar Oct 11 '17 20:10 DavePearce