Live data from Hacker News

Block Comments Are a Bad Idea

futhark-lang.org

81–84 of 84 posts

Re: Block Comments Are a Bad Idea

#81
post #11
post #8

Earlier quoted context omitted.

See also GOTO which is a wart 99.9% of the time but really useful for writing e.g. parsers.

Error handling.

Parsers (or more generally state machines) and error handling are the two places I've seen that are acceptable. We've managed to complete the list. :)

Re: Block Comments Are a Bad Idea

#82

Earlier quoted context omitted.

> "I don't have these problems, therefore they are not real problems" What a major mischaracterization. It was the author that implied things were objectively bad . I stated that the subject is subjective , in that there are use cases where block comments are good.

What the author stated was: > I will argue that block comments are unnecessary, and in fact near-impossible to design and implement correctly (for my own pedantic notion of correctness) You might argue, subjectively or objectively, about the utility of the "notion of correctness" used here, but the author warns at the outset that this is the basis for the rest of the analysis. I ask again, what preface would the auth…

He argued that future programming languages should get rid of them completely.

Re: Block Comments Are a Bad Idea

#83

Earlier quoted context omitted.

What the author stated was: > I will argue that block comments are unnecessary, and in fact near-impossible to design and implement correctly (for my own pedantic notion of correctness) You might argue, subjectively or objectively, about the utility of the "notion of correctness" used here, but the author warns at the outset that this is the basis for the rest of the analysis. I ask again, what preface would the auth…

He argued that future programming languages should get rid of them completely.

Yes, but based on an subjective judgment. I am the author of the blog post, and I tried to do my utmost to emphasize that my judgment here is highly subjective, using phrases such as "for my own pedantic notion of correctness", and "I cannot in good faith claim that [problems with block comments] occur all that often in practice". I try to make it clear that I'm not surprised, offended, or annoyed that most languages support block comments.

How do you think I should have put my words, to make it clear that my opinion here is not intended as objective fact, but merely a subjective take on a language design question?

Re: Block Comments Are a Bad Idea

#84
post #83

Earlier quoted context omitted.

He argued that future programming languages should get rid of them completely.

Yes, but based on an subjective judgment. I am the author of the blog post, and I tried to do my utmost to emphasize that my judgment here is highly subjective, using phrases such as "for my own pedantic notion of correctness", and "I cannot in good faith claim that [problems with block comments] occur all that often in practice". I try to make it clear that I'm not surprised, offended, or annoyed that most languages…

* Don't state that other people should change years of convention to meet "your pedantic notion of correctness".

* Center your blog post around "why I don't like block comments" and not "why block comments are bad".

Post reply on HN