(A similar question about godbolt links in posts, rather than comments, was posted a few hours after this.)
So, on C and C++ tagged questions, it is common to link to the online compiler at http://gcc.godbolt.org/.
However, as of today, SO is blocking me from providing such links. A sample link has the form http://goo.gl/XheF1S
.
But trying to put this in a comment, I get a big blurb that url-shortened links may not be used, with a link to this meta thread.
However, the full form of the URL, which is http://gcc.godbolt.org/#%7B%22version%22%3A3%2C%22filterAsm%22%3A%7B%22labels%22%3Atrue%2C%22directives%22%3Atrue%2C%22commentOnly%22%3Atrue%2C%22intel%22%3Atrue%7D%2C%22compilers%22%3A%5B%7B%22sourcez%22%3A%22MQSwdgxgNgrgJgUwAQB4DOAXOID2A6ACwD4AoEgNxxDiQDMAKcDJAQwG1MWMQIkAmALpsAzAICUJAN4kks2jgBOSRmGYgkAXiQAGANxJ1KfvoDUJkBNlX5SlcwBWmnfsdHhpk%2FctWrABwVMDABEAKRwADpgQQA0rGwgQvbiuiQAvmRMSAC2LOD0EtJWmewAjEKiKdb0LGKVSDKymQBGIuUCdXT0TbVpQAAA%3D%22%2C%22compiler%22%3A%22g520%22%2C%22options%22%3A%22-pedantic%20-O3%20-Wall%20-std%3Dc11%20-x%20c%20-pedantic%22%7D%5D%7D
, is too long to fit in a comment.
So this change has made it unable to link to examples in comments, which is very annoying.
I appreciate the intent in blocking url shorteners but in this case it has interfered with the Q/A process. Examples in comments are commonly used in order to provide clarification, or when debating how the answer should be improved.
For now I am working around it by mangling the url a bit and hoping the reader can figure it out, but that is going to make it more difficult for OP to see the example.
Would it be possible to undo this change for C and C++ questions, or white-list gcc.godbolt.org, or something?
or white-list gcc.godbolt.org
But you're not linking to that site. You're linking to "goo.gl" There's no way to know where any such link actually points to. That's the whole point of a link shortener. And this isn't a new policy; link shorteners have always been disallowed, it just seems that the one you use finally got added to the blacklist.