Skip to content

πŸŽ“ Tutorial: Commenting

Vincent Estes edited this page Dec 24, 2022 · 1 revision
  1. Commenting
  2. Invalid Comments

1. Commenting

Comments are ways for the user to store information without passing it through the language. Commenting is the easiest in Simpl-Py (fact). In every other language, you have to use a character(s) to begin a comment (usually # or //). In Simpl-Py, all you have to do is just type any non-command value. The language ignores any input that is not a command. For example:

>> this is a comment
>> these don't do anything
>> 

2. Invalid Comments

While this may seem great, there are still some limitations. If you start a comment with a command, Simpl-Py will try to find the command and fail:

>> print_this is a comment
{S-016x} - Print Handler Error
>> this will work though. print_hey
>> 

You also cannot start a comment with an operator. The operators are . and _ (we will look at operators later). Doing this will return other errors.


Resources: LibRef: Comments, LibRef: Invalid Comments


<previous< / -home- / >next>

  • Library Reference
  • Tutorial Home
    • Intro
    • Installation and Setup
    • Intro to Simpl-Py Processes
    • Commenting
    • Intro to Print Functions
    • Variables
    • Print Math Function
    • Base Functions
    • Slash Functions
    • Simpl-Py Handling
    • Intro to Errors
    • Advanced Print Functions
    • Intro to TXT Functions
    • Intro to Call Numbers
    • Errors with Developer Mode
    • Advanced TXT Functions
    • Advanced Call Numbers
    • Intro to Modules
    • Beta Mode
    • Custom Modules
    • Advanced Modules
    • Future and Your Help

Clone this wiki locally