Be Gentle
Code
#be gentle
tellme("This line is okay.");
tellmee("This line is an error.");
Console
Couldn’t figure out what you meant by “tellmee” on line 11. Check again? Help
Help:
- Are there any typos in this?
- Is this meant to be a variable or a built-in function name? a. Variable: check that it’s defined earlier in the code with consistent spelling and that it’s accessible in the same scope. b. Built-in function: check the language documentation and see if you’re missing anything.
- If those steps don’t help, here are generated search links pre-filled with this search: “e?xpress tellmee possibility undefined”. You can check on the e?xpress forums, DuckDuckGo and StackOverflow to see if other people have encountered this problem.
Explanation
The #be directive can be followed by either firm or gentle. Here, the programmer uses gentle to inform the processor that they need a little extra guidance and support.
#be gentle
Thus, when tellme is misspelled as tellmee on line 4, a lengthy message is given that points out the error and provides suggestions for potential steps to take. Additionally, it provides pre-filled search links that the programmer can use to look for other people’s solutions to the problem.