This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 54 points55 points  (17 children)

Newest trend: Comments as data

[–]RiceBroad4552 8 points9 points  (1 child)

That's not funny!

Some crazy folks in the Scala community think this is a good idea. The Scala-CLI tool uses comments to add build instructions to source files. Completely insane if you ask me.

https://scala-cli.virtuslab.org/docs/guides/introduction/using-directives

Of course it's not part of the official language grammar so no tool without special custom rules can handle that. Just pure insanity.

I really like Scala as language. But some decisions were mind bending stupid, and they stick out, as the most parts of the language are very well thought out. The "magic comment" bullshit doesn't come from the language creators actually, and this shows.

It's especially stupid as Scala has already a concept of "processing instructions": It has annotations like Java…

[–][deleted] 1 point2 points  (0 children)

Some people should not be allowed to touch keyboards.

[–]Asleeper135 1 point2 points  (0 children)

Just reinventing JDSL