 
      
    | You are here | www.vegardno.net | ||
| | | | | skiplang.com | |
| | | | | One of my biggest frustration when I try to learn a new language (Rust, Elm) or work on a language that I haven't touched in a while (OCaml, C++, PHP) is around syntax. I know what I want to write and I have an approximate idea of how it should be written but don't exactly get it right. | |
| | | | | www.foonathan.net | |
| | | | | Let me share a useful insight with you: constexpr is a platform. Just like you write code that targets Windows or a microcontroller, you write code that targets compile-time execution. In both cases you restrict yourself to the subset of C++ that works on your target platform, use conditional compilation if your code needs to be portable, and execute it on the desired target platform. You can thus view constexpr as another platform you can target; it just so happens to be run by your compiler. This insig... | |
| | | | | thasso.xyz | |
| | | | | My personal blog about things I find interesting. Hit me up! | |
| | | | | ricardo.cc | |
| | | Stories about code, design, coffee and other good stuff. | ||