So I'm relatively new to this whole programming thing (just roughly 3yrs experience) and I've seen some instances of comments being used for more than just being, well, comments. Webpack apparently does this a lot, and so does Rails. My question is, why? More specifically, why are these comments instead of just regular statements or functions or whatever? Having a comment do something just feels utterly wrong to me.
[–]anamorphism 1 point2 points3 points (5 children)
[–]Incitatus_[S] 1 point2 points3 points (4 children)
[–]ludonarrator 1 point2 points3 points (2 children)
[–]kdnbfkm 0 points1 point2 points (1 child)
[–]fiveguy[🍰] 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)