You are here |
www.gotw.ca | ||
| | | |
herbsutter.com
|
|
| | | | This special Guru of the Week series focuses on contracts. We covered some basics of preconditions in GotW #100. This time, let's see how we can use preconditions in some practical examples... 1. Consider these functions, expanded from an article by Andrzej Krzemie?ski: [1] ... How many ways could a caller of each function get... | |
| | | |
herbsutter.com
|
|
| | | | This special Guru of the Week series focuses on contracts. Postconditions are directly related to assertions (see GotW #97)... but how, exactly? And since we can already write postconditions using assertions, why would having language support benefit us more for writing postconditions more than for writing (ordinary) assertions? 1. What is a postcondition, and how... | |
| | | |
herbsutter.com
|
|
| | | | This special Guru of the Week series focuses on contracts. We covered some basics of preconditions in GotW #100. This time, let's see how we can use preconditions in some practical examples... JG Question 1. Consider these functions, expanded from an article by Andrzej Krzemie?ski: [1] // Adapted from [1] auto is_in_values (int val, int... | |
| | | |
poignardazur.github.io
|
|
| | Tl;dr: The Rust community should talk about variadic generics again, and motivated people should get the ball rolling. |