Skip to content

Commit ed43ea1

Browse files
nicomenrjbs
authored andcommitted
Fix some typos pointed out by @leonerd, thanks!
1 parent 950ec65 commit ed43ea1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rfcs/rfc0015.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Remove support for ' (apostrophe) as package namespace separator.
1616
* Removal of ambiguous syntax that complicates parsing and confuses users.
1717

1818
From perldoc perlmod
19-
20-
```The old package delimiter was a single quote, but double colon is now the preferred delimiter, in part because it's more readable to humans, and in part because it's more readable to emacs macros. It also makes C++ programmers feel like they know what's going on--as opposed to using the single quote as separator, which was there to make Ada programmers feel like they knew what was going on. Because the old-fashioned syntax is still supported for backwards compatibility, if you try to use a string like "This is $owner's house", you'll be accessing $owner::s; that is, the $s variable in package owner, which is probably not what you meant. Use braces to disambiguate, as in "This is ${owner}'s house".```
19+
> The old package delimiter was a single quote, but double colon is now the preferred delimiter, in part because it's more readable to humans, and in part because it's more readable to emacs macros. It also makes C++ programmers feel like they know what's going on--as opposed to using the single quote as separator, which was there to make Ada programmers feel like they knew what was going on. Because the old-fashioned syntax is still supported for backwards compatibility, if you try to use a string like `"This is $owner's house"`, you'll be accessing `$owner::s`; that is, the `$s` variable in package owner, which is probably not what you meant. Use braces to disambiguate, as in `"This is ${owner}'s house"`.
2120
2221
## Rationale
2322

@@ -52,7 +51,7 @@ There are a few alternatives on how to disable this feature and changing the mea
5251

5352
All of the above may be turned on or off using compiler flags, pragmas or extending warning::syntax
5453

55-
The current patch that I made some years ago is mostly like: `1 + b` but cold turkey remocing as much as possible without any flags or switches.
54+
The current patch that I made some years ago is mostly like: `1 + b` but cold turkey removing as much as possible without any flags or switches.
5655

5756
I think `2 + a` would be an interesting approach to keep backwards-compatibility somewhat.
5857

0 commit comments

Comments
 (0)