From Esolang
Jump to navigation Jump to search

"it is not Turing complete due to the loss of nested loops." I don't see why you can't have nested loops. Martin Büttner (talk) 07:05, 17 August 2015 (UTC)

I think the ' command allows for nesting loops via reinterpreting the "s around it, right? It makes sense to delete that part of the page, it's just a trivial BF substitution after all. --ais523 07:07, 17 August 2015 (UTC)
Yes, ' simply toggles " from being equivalent to [ to being equivalent ] and back. --Martin Büttner (talk) 07:09, 17 August 2015 (UTC)
Ah, right; sorry, looks like I mis-read the source. That C++ wasn't compiling for me. (I assumed it was C++'s usual trick of slightly dodgy version compatibility.) Rdebath (talk) 07:59, 17 August 2015 (UTC)
Actually, I suspect adding an apostrophe inside small inner loops would be awkward. I think it might be better if the double quote switches the loop state too. That way a set zero [-] would become "," not ",'" Rdebath (talk) 12:09, 23 August 2015 (UTC)

If you want to nest quotes in a "truer" way, you could use the literary convention of alternating "s and 's. In other words, initially, " maps to [ and ' maps to ], and every time one of them is used, their interpretations swap. The only downside is you would lose the use of apostrophes in contractions. Only Onion (talk)