Skip to content

Commit

Permalink
Merge pull request #3823 from paulstansifer/master
Browse files Browse the repository at this point in the history
Talk about ends, rather than means, in macro tutorial introduction.
  • Loading branch information
brson committed Oct 21, 2012
2 parents 191d162 + 4edb881 commit 082d3d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/tutorial-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

# Introduction

Functions are the primary tool that programmers can use to build
abstractions. Sometimes, though, programmers want to abstract over
compile-time, syntactic structures rather than runtime values. For example,
the following two code fragments both pattern-match on their input and return
early in one case, doing nothing otherwise:
Functions are the primary tool that programmers can use to build abstractions.
Sometimes, however, programmers want to perform abstractions over things that are not
runtime values. Macros provide a syntactic abstraction. For an example of how this
can be useful, consider the following two code fragments, which both pattern-match
on their input and return early in one case, and do nothing otherwise:

~~~~
# enum t { special_a(uint), special_b(uint) };
Expand Down

0 comments on commit 082d3d5

Please sign in to comment.