Browse files


  • Loading branch information...
raganwald committed May 22, 2012
1 parent 6b3e411 commit 248b6eb1eb1fc679c3165a8f38140e23a9400bc4
Showing with 1 addition and 1 deletion.
  1. +1 −1 2012/05/
@@ -4,7 +4,7 @@
> In natural language, an anaphor is an expression which refers back in the conversation. The most common anaphor in English is probably "it," as in "Get the wrench and put it on the table." Anaphora are a great convenience in everyday language--imagine trying to get along without them--but they don't appear much in programming languages. For the most part, this is good. Anaphoric expressions are often genuinely ambiguous, and present-day programming languages are not designed to handle ambiguity. --Paul Graham, [On Lisp]( "On Lisp")
-## Old school anaphora
+## Old School Global Variable Anaphora
Anaphora have actually been baked into Ruby from its earliest days. Thanks to its Perl heritage, a number of global variables act like anaphora. For example, `$&` is a global variable containing the last successful regular expression match, or nil if the last attempt to match failed. So instead of writing something like:

0 comments on commit 248b6eb

Please sign in to comment.