Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One item on stack if there are no arguments? #2

Open
hanyuone opened this issue Mar 31, 2017 · 1 comment
Open

One item on stack if there are no arguments? #2

hanyuone opened this issue Mar 31, 2017 · 1 comment

Comments

@hanyuone
Copy link

Uses:

This is mainly useful for a "Hello, World!" program that takes no input.

Specs:

If there are no arguments given to a Wise program, the stack should start off with a single 0. Once there is an argument given, however, the stack is the same as usual. For example:

Wise program:
-~

No input: outputs 1
Input of 5: outputs 6
@Wheatwizard
Copy link
Owner

I've been thinking about this myself. However with a slightly different motivation. Once something is on the stack it is impossible to remove it. The normal pop :^| only works if there is nothing on the stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants