Previous | Top |
|
I think of this stuff as the "watching a sunset through rose
colored glasses" problem. It can be hard to pick out what's
going on...
This version shows a safer way to do it that eliminates a couple of issues. Arguably it isn't as clear as just using the character directly, but for debugging purposes at least, it's nice to be sure what you've got. I like the construct: \x{}, which interpolates into quoted strings (remember: "x is for hex"). Another good way is the "chr()" function. |
Next | Top |