Skip to content

Commit 4edb881

Browse files
committed
Talk about ends, rather than means, in macro tutorial introduction.
1 parent 8378757 commit 4edb881

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/tutorial-macros.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
# Introduction
44

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

1111
~~~~
1212
# enum t { special_a(uint), special_b(uint) };

0 commit comments

Comments
 (0)