Printing Functions
Subtle differences between the Print, Princ, Prin1, and Prompt commands
- Print always starts at a new line and puts Quotes around the values - not very elegant, so I always use it for debugging a program, that way I search for print and remove them all
- Prompt sends to both screens in a dual screen configuration, but not many people use those anymore, so the value is questionable. Note that it always returns nil, unlike the other print commands, which return the string they have sent
- Princ is a good one to use as you can send linefeeds, returns, tabs, etc using the escape character (\)
- Prin1 is a little more esoteric, it send the escape characters expanded as escape characters, so they can be read back in
- I generally use Princ for sending text to the user and Print for sending text to myself during development stage, and leave the rest alone