r/programming • • May 10 '18

Java: Executing code in comments?!

http://programming.guide/java/executing-code-in-comments.html
260 Upvotes

84 comments sorted by

View all comments

Show parent comments

0

u/[deleted] May 12 '18 edited May 12 '18

If the spec said + is subtraction and * is addition noone would say it's correct. Just like noone says only allowing one null in a unique column is a good idea (One of SQL Server biggest complaints)

1

u/recursive May 12 '18

Correctness for things like this is not based on opinion polls. That's a good thing. If you don't accept that we'll have to agree to disagree.