Skip to main content

Timeline for Make your language unusable

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Jan 17, 2017 at 1:29 comment added sergiol Before seeing you answer, I was trying to answer in Tcl and I followed the same reasoning line of your first approach!
S Jan 21, 2016 at 17:16 history suggested wizzwizz4 CC BY-SA 3.0
Fixed a typo and was a pedant.
Jan 21, 2016 at 16:51 review Suggested edits
S Jan 21, 2016 at 17:16
Oct 20, 2015 at 7:32 comment added jimmy23013 Of course you don't need to rename them. But this is not code-golf. I just thought renaming them may (or may not) make this answer looks better.
Oct 20, 2015 at 7:28 comment added slebetman I decided not to rename if because being able to do if alone is pretty much useless if you want to generate output.
Oct 20, 2015 at 7:27 comment added slebetman @jimmy23013: OK. Code now works without needing to call rename. It was brainfart on my part - I forgot to exclude proc.
Oct 20, 2015 at 7:26 history edited slebetman CC BY-SA 3.0
deleted 31 characters in body
Oct 20, 2015 at 7:24 comment added slebetman @jimmy23013 Hmm.. technically you should be right but that code snippet works with the current version of tcl even when proc appears in the list before puts. Technically the code should also work without rename but built-in commands seem to be protected otherwise. Not sure what's going on but the code is tested and works as advertised.
Oct 20, 2015 at 7:08 comment added jimmy23013 I think you can make it better by renaming if and rename after the loop. In the second version, you should also make proc an exception.
Oct 20, 2015 at 5:36 history edited slebetman CC BY-SA 3.0
added 580 characters in body
Oct 20, 2015 at 5:08 history answered slebetman CC BY-SA 3.0