上QQ阅读APP看书,第一时间看更新
Learning the Basics
In this chapter, we will cover the following recipes:
- Concatenating strings
- Using the format! macro
- Providing a default implementation
- Using the constructor pattern
- Using the builder pattern
- Parallelism through simple threads
- Generating random numbers
- Querying with regexes
- Accessing the command line
- Interacting with environment variables
- Reading from stdin
- Accepting a variable number of arguments