@nixCraft heh, clever
the url breaks down into a label and a comment XD
@nixCraft without looking at the link..
https: is parsed as a label and anything after the // is ignored as a comment?
edit: hehe yup, that was it 
@nixCraft Ah this was an easy one:
#include <stdio.h>
int main(void)
{
https://susam.net/
printf("hello, world\n");
goto https;
return 0;
}
@nixCraft In rust you have to quote the URL ;)
fn ai(think: bool, thunk: impl Fn()) {
'https://susam.net/url-in-ruist.html'
while think {
thunk()
}
}
(Note: Remove the zero-width space I inserted to stop the url being rendered as a url if copy and pasting this code)
@nixCraft A website I maintained had a buggy template that generated the following JS code:
var STATIC_URL = /static/;
and it worked fine! STATIC_URL + "something.css" did generate "/static/stomething.css".
It eventually broke when the static URL got changed to a full URL.
@nixCraft The reason it worked is that /<something>/ is valid JavaScript syntax that defines a regular expression.
STATIC_URL = /static/;
sets STATIC_URL to a regular expression object.
STATIC_URL + "something.css" converts STATIC_URL back to a string in order to join it to the other string, and it turns out that the string representation of a regular expression is just the full regular expression pattern with slashes, so "/static/" here.