Timeline for Make your language unusable
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Feb 2, 2019 at 1:52 | comment | added | Joshua | I'm pretty sure this can be busted w/ another macro. | |
Oct 20, 2015 at 10:00 | comment | added | Mason Wheeler | @slebetman: And when you have a REPL, or macros where user code is executed at compile time, the distinction between the two gets very blurry. | |
Oct 20, 2015 at 9:28 | comment | added | slebetman | @MasonWheeler: Not exactly, throwing exceptions is a run-time process. Failing to compile happens before runtime. | |
Oct 20, 2015 at 9:16 | comment | added | Mason Wheeler | @slebetman: Boo also has a REPL. I just checked, and if you run this macro on it, then every line you try afterwards will cause the compiler to throw an exception, which makes this trick functionally equivalent to the JavaScript example that's currently the highest-voted answer on here. | |
Oct 20, 2015 at 5:38 | comment | added | slebetman | @MasonWheeler: As per the specification: the code inserted after the harmless macro must somehow be executed by the CPU/interpreter. If the macro breaks the compiler then it does not fit the criteria (note the infinite loop example in the challenge) | |
Oct 19, 2015 at 20:24 | comment | added | Mason Wheeler | @ppperry: yes, invoking the macro (anywhere in the code) is what causes the compiler to break, fulfilling the criteria. If you're trying to say something deeper than that, you'll have to be a bit more clear, because I don't see what the problem is. | |
Oct 19, 2015 at 20:18 | comment | added | The Fifth Marshal | You would have to define such a macro for a character of set of characters that needs to be typed in every single program or set of programs that makes boo fit the criteria. | |
Oct 19, 2015 at 20:13 | comment | added | Mason Wheeler | @ppperry: Sure it does: the macro can be written as part of the user code, and it's executed inside of the compiler. | |
Oct 19, 2015 at 20:11 | comment | added | The Fifth Marshal | This answer is invalid, as the user code never gets executed. | |
Oct 19, 2015 at 18:49 | history | answered | Mason Wheeler | CC BY-SA 3.0 |