Talk:Comp

From Esolang
Jump to navigation Jump to search

The Ampersand

I notice in your Truth Machine example that there is the usage of a & function. However, this isn't defined in your commands list. What does the & do? Hey, that's a good meme! JonoCode9374 (talk) 22:54, 2 January 2020 (UTC)

Presumably it outputs the top of stack in some way. IFcoltransG (talk) 07:52, 16 January 2020 (UTC)
But that's what £'s for though. --(this comment by JonoCode9374 at 08:54, 16 January 2020 (UTC) UTC; please sign your comments with ~~~~) 08:54, 16 January 2020 (UTC)
If it's a proper truth machine, it'll have to do the same thing as £. I expect either the £ or the & are mistakes. IFcoltransG (talk) 09:50, 16 January 2020 (UTC)

Implicit Input/Output

If you are indeed designing a golfing language, I'd recommend adding some implicit I/O, to make this language a bit more competitive. ----(this comment by A at 12:34, 1 January 2016 UTC; please sign your comments with ~~~~) 14:16, 30 January 2020 (UTC)

Without implicit i/o:

;{^&}&

With implicit i/o:

{^&}

Confused? Well, you could consider pushing all of the input taken from the console onto the stack directly (the most basic form of implicit input), and that can save lots of bytes. ----(this comment by A at 12:34, 1 January 2016 UTC; please sign your comments with ~~~~) 14:18, 30 January 2020 (UTC)

As for implicit output, you could either choose to output the whole stack or top of the stack at the end. It's completely up to you. ----(this comment by A at 12:34, 1 January 2016 UTC; please sign your comments with ~~~~) 14:19, 30 January 2020 (UTC)