Talk:Reaper

From Esolang
Jump to navigation Jump to search

Examples, please!

Please write some examples, if possible! Seems interesting but I have no idea how this works! --Keymaker 20:56, 14 Jun 2006 (UTC)

I have just made up some IO primitives and I'll try and write a cat program to start with. --Ørjan 21:38, 14 Jun 2006 (UTC)
OK so it was buggy (I did not actually claim I knew how to program in my own language, did I?) More seriously, at this moment I cannot see a way to negate a test, so I cheated and negated the primitive ifEof into unlessEof instead, which is relatively easy to use.
More seriously, if might be impossible to negate a test in Reaper. Maybe there is a way I haven't seen yet, or otherwise maybe one could do flags as pairs of objects, where the test destroys exactly one of them. --Ørjan 11:44, 15 Jun 2006 (UTC)

I am not absolutely sure there is no workaround for negating a test in the original version, but it seems to me that a := statement that explicitly cancels destructors fits with the rest of the language, so I introduced it and changed back to the original ifEof primitive. --Ørjan 17:38, 15 Jun 2006 (UTC)