You are here |
mariusbancila.ro | ||
| | | |
nicobombace.com
|
|
| | | | If you are a C++ developer, and you have not been living under a rock, you certainly know that C++23 is finalized! One of my favourite addition is monadic operations. | |
| | | |
hhvm.com
|
|
| | | | HHVM 4.146 is released! This release marks the end of support of 4.138;4.139, 4.140, and 4.143 - 4.145 remain supported, as do the 4.102 and 4.128 LTS releas... | |
| | | |
www.cppstories.com
|
|
| | | | In this post we?ll have a look at new operations added to std::optional in C++23. These operations, inspired by functional programming concepts, offer a more concise and expressive way to work with optional values, reducing boilerplate and improving code readability. Let?s meet and_then(), transform() and or_else(), new member functions. Traditional Approach with if/else and optional C++20 In C++20 when you work with std::optional you have to rely heavily on conditional checks to ensure safe access to ... | |
| | | |
www.foonathan.net
|
|
| | Common C++ guidelines are to initialize variables on use and to make variables const whenever possible. But sometimes a variable is unchanged once initialized and the initialization is complex, like involving a loop. Then an IIFE immediately-invoked function expression can be used: the variable is initialized by a lambda that computes the value, which is then immediately invoked to produce the value. Then the variable is initialized on use and can also be made const. Ive been recently working on a meta... |