|
You are here |
sdowney.org | ||
| | | | |
eyakubovich.github.io
|
|
| | | | | In the previous post, we developed a logarithmic depth accumulate() function that can be used to emulate a for-loop. In this post, we'll look at how to construct a function that emulates a while-loop with the recursive depth of O(lg(n)) where n is the number of iterations of the while-loop.... | |
| | | | |
poignardazur.github.io
|
|
| | | | | This is an informal proposal for improving the Rust programming language. I'll assume familiarity with the language. | |
| | | | |
brevzin.github.io
|
|
| | | | | C++17 gave us std::optional which is, in the words of a friend of mine, one of those really simple, ultra complex types - in the sense that it's very easy to understand and use properly, even for relatively inexperienced programmers... but extremely difficult to implement correctly, even for experts (another such is std::pair). Today, it's well over a thousand lines of code, most of which is critical to support even its most basic functionality. optional is the simplest sum type, and it appears in lots of different languages (and even has special syntax in Swift) under various related names - Maybe, Option, etc. - but in the languages I'm even nominally familiar with, it's about as simple to implement as it is to use. | |
| | | | |
accu.org
|
|
| | | What is C++ and why do people still use it? Bjarne Stroustrup provides a short note answering these questions. | ||