-6
Your Task: Print "Hello, World!" using a palindrome.
Simple, right?
Nope.
You have one restriction: you may not use comments.
"Comments" include
- Normal
//
or#
comments - Adding extraneous characters to a string literal
- Triple-quoted string comments
- Creating a string literal to hide characters
You may not use a pre-defined procedure to print "Hello, World!". (like HQ9+'s H command)
This is code-golf, so the shortest answer in bytes wins.
7Almost duplicate. I'll leave it up to the community to decide whether the comment restriction makes a sufficient difference or not. (Although I personally don't think comment restrictions work... once you get to 2D languages, you can easily include all sorts of code that isn't a no-op, but never happens to be executed.) – Martin Ender – 2016-03-31T13:25:35.093
This challenge has been done so much, it's been solved as 1 or even 0 byte answers in multiple languages – Blue – 2016-03-31T13:34:11.467
4I'm voting to close as a duplicate, since there are many answers from the other challenge that can be used without modification here. – AdmBorkBork – 2016-03-31T13:36:31.710
Maybe you can make it harder by requiring all the code affecting the output. Otherwise you get answers containing like-comments and one doesn't feel worth to write a more sophisticated one. – jimmy23013 – 2016-03-31T13:43:52.060
3
@CrazyPython Updating rules after an answer has been posted is highly frowned upon, on top of this already being a duplicate. For future challenges, I highly recommend using The Sandbox so you can get meaningful feedback on challenges before they're posted.
– AdmBorkBork – 2016-03-31T13:50:13.170@TimmyD In this case it is necessary to close loopholes. It also only invalidates joke answers. – noɥʇʎԀʎzɐɹƆ – 2016-03-31T13:53:45.877
The center of the challenge is no comments. That makes it 300% harder. It's [tag:restricted-source]. – noɥʇʎԀʎzɐɹƆ – 2016-03-31T13:57:56.740
1@CrazyPython The fact that "joke" answers were allowed under the rules-as-originally-written highlights the fact that this challenge wasn't ready for posting to main. The fact that you're adding "no comments" to the restrictions doesn't change the fact that many answers from the linked challenge can be posted here without modification, making this one a duplicate. – AdmBorkBork – 2016-03-31T13:59:07.800
@TimmyD The original question the no comment restriction, I simply made it in a larger font. – noɥʇʎԀʎzɐɹƆ – 2016-03-31T14:01:18.573
1@CrazyPython No, sorry for being unclear. I meant that adding "no comments" as a restriction to "palindrome Hello World" doesn't make it a sufficiently different enough challenge to not be a duplicate. If you want to discuss this further, let's take it to chat. – AdmBorkBork – 2016-03-31T14:08:26.600