Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for Code that will only execute once

Current License: CC BY-SA 3.0

19 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited Community Bot
Commonmark migration
Jun 3, 2014 at 18:59 comment added ɐɔıʇǝɥʇuʎs Would main=lambda:0/0 work?
Jun 2, 2014 at 19:49 comment added primo @JonathanPullano Unless that function is main.
Jun 1, 2014 at 17:53 comment added Martin Ender @NickT ah, good point. This answer was never competitive for code golf with all those 4 to 6 character answers, so I went for something simple and neat, but didn't really care about properly golfing it down. (You can see in the edit history that there was a stage where I actually said "heck, this isn't winning anyway, but I'm posting it for the fun of it" back when the challenge actually was code golf.)
Jun 1, 2014 at 17:48 comment added Nick T Granted, it's not code-golf, but how about a simple def main():x which will NameError?
Jun 1, 2014 at 11:50 comment added MasterMastic Omg this language is awesome!
Jun 1, 2014 at 1:06 comment added ojblass Congratulation for winning and thank you for participating.
Jun 1, 2014 at 1:06 vote accept ojblass
May 28, 2014 at 20:49 comment added orion Additional points for swearing. A program making a confident false statement no doubt needs to be eliminated.
May 28, 2014 at 18:24 comment added Martin Ender @JonathanPullano you're not the first one to notice that ;)
May 28, 2014 at 18:23 comment added Jonathan Pullano To me it seems that it is not necessarily the fault of the function that throws an uncaught exception, it could also be that the functions on the call stack are negligent for failing to catch it. It could even suggest the architecture of the whole application is flawed (Because perhaps there is no way to properly handle that exception without restructuring the code?) In short, the whole program should be deleted.
May 28, 2014 at 15:55 comment added Claudiu Finally, a sufficiently vigilant language for the modern age! I'm going to start using it in production. All bugs must be purged.
May 28, 2014 at 15:44 history edited Martin Ender CC BY-SA 3.0
fix emphasis of quote
May 28, 2014 at 15:29 history edited Martin Ender CC BY-SA 3.0
removed code size, now that the challenge is popcon
May 28, 2014 at 11:14 history edited Martin Ender CC BY-SA 3.0
added 111 characters in body
May 28, 2014 at 10:44 comment added Matteo Italia No doubt, this deserves to win.
May 28, 2014 at 10:01 history edited Martin Ender CC BY-SA 3.0
added 7 characters in body
May 28, 2014 at 9:56 history edited Martin Ender CC BY-SA 3.0
deleted 6 characters in body
May 28, 2014 at 9:30 history answered Martin Ender CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /