File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Introduction
4
4
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:
10
10
11
11
~~~~
12
12
# enum t { special_a(uint), special_b(uint) };
You can’t perform that action at this time.
0 commit comments