Talk:Slashes
From Esolang
I removed a /// from the bottles of beer program because in my intuition (and in my implementation, although it is simple to adopt that by testing for $s empty) it causes an infinite loop, because every program contains the empty string. Also I disagree that /bar/foobar/bar should print anything, since as I understand the specification, the replacement must be fully completed before a new command can be performed.
Another thing I wondered is whether ][ can be escaped by \ during the initial program transformation. I assumed not in the Perl program. --Ørjan 22:42, 26 May 2006 (UTC)
- In my (unpublished) implementation, /bar/foobar/bar is also a nonprinting infinite loop, as is anything else with a self-replacement. It seems that trying to get a useful loop is like trying to program in Muriel; the problem is there is no quotify operation, so one has to be written.
- The implementation and program correction is incorrect; there is no ]\n[ construct in the language. The very first replacement is actually /]\n[//, which removes all instances of ]\n[ in the rest of the program; it is the program itself that asks for ]\n[ removal. (There is nothing special about the ]\n[ sequence; if the program started /)\n(//, then )\n( could be used to remove newlines). I'm reverting that change accordingly. --ais523 10:50, 28 May 2006 (UTC)
- (Sound of beating head) Doh! On the /bar/foobar/bar point, it should be possible to allow it to print by doing replacement lazily, which could easily be done in a Haskell implementation. This would also allow creating at least one loop in the program. --Ørjan 12:59, 28 May 2006 (UTC)

