What's the difference between Prompt and Input? When would you use one versus the other? Pros and cons? Anything?
Prompt is boring
Input is delightfull
heres a comparison
:Input "NUMBER CORRECT?",A NUMBER CORRECT?5
:Prompt A A=?5
there is only one benifit of prompt which is the compiliation technique
In detail, Input lets you create a prompt text of your own. So, you can do Input "Rolls?". Then, you have to put a comma after it followed by the variable the input is going in. Input "Rolls?",R
Prompt is quicker by a fraction of a second, but much more uglier than input
I don't know why everyone thinks Prompt is ugly. For mathematical programs asking for variables, Prompt seems to fit perfectly, and isn't out of place for many inputs. Sure, Input is more customizable, but for most inputs, Prompt works fine.
Input "What is your name?",Str1 Disp Str1
Prompt Str1 Disp Str1
That argument would work if there were an InputName command. The only statement Ed H is making here is that when requesting a variable, Input "What is <variable>?",<variable> is more verbose than necessary. But if that variable stood for something ambiguous—G might mean "gas" or "gravity" in a moon lander game, for example—then Input obviously has its place.
I just like input much better
With input you can do something like
Disp "What Is A?"
And it shows up as;
What is A?
//type text one second line
Whereas the most you can do with prompt is
A=? //type same line
B=? //type same line
The question mark is kind of unnecessary too
i think most pro's and cons are already said, but one difference is still remaining.
when prompting string, input works better than prompt because with input you dont have to type the ".