Editing 234: Escape Artist
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 8: | Line 8: | ||
==Explanation== | ==Explanation== | ||
β | {{w|Harry Houdini}} (born Erik Weisz/ | + | {{w|Harry Houdini}} (born Erik Weisz/Ehric Weiss) was a famous escape artist, whose more famous routines included escaping straitjackets and switching places with an assistant while locked inside a box. |
The word "escape" also has a meaning {{w|Escape character|in computer science}}. To "escape" something in programming means to replace a character or character sequence that would usually have a special meaning with another character sequence that doesn't have this special meaning. One common way of escaping is to have a special escape character that removes the special meaning from whatever character follows it. For instance, many programming languages enclose text strings in quotation marks (e.g. <code>"this is a string"</code>). If you tried to directly put a quotation mark inside the string, the compiler would interpret it as the end of the string. To avoid this, the quotation mark is ''escaped'' with a backslash: <code>"He said, \"Goodbye!\", and went away."</code> | The word "escape" also has a meaning {{w|Escape character|in computer science}}. To "escape" something in programming means to replace a character or character sequence that would usually have a special meaning with another character sequence that doesn't have this special meaning. One common way of escaping is to have a special escape character that removes the special meaning from whatever character follows it. For instance, many programming languages enclose text strings in quotation marks (e.g. <code>"this is a string"</code>). If you tried to directly put a quotation mark inside the string, the compiler would interpret it as the end of the string. To avoid this, the quotation mark is ''escaped'' with a backslash: <code>"He said, \"Goodbye!\", and went away."</code> |