 
      
    | You are here | andrewkelley.me | ||
| | | | | theartofmachinery.com | |
| | | | | ||
| | | | | blog.lohr.dev | |
| | | | | A review by a Rust enthusiast | |
| | | | | mrcat.au | |
| | | | | I've started learning Zig, a new programming language in the same problem space as C, and it has some features I really like. While it's not memory-safe in the Rust way, it has a lot of compile time and runtime checks to prevent common footguns. It has packed structs and variable-width integers to allow for easy parsing of bitpacked binary formats. Its comptime metaprogramming capabilities are spectacular. And it even interoperates seamlessly with C! | |
| | | | | www.ncameron.org | |
| | | One of the more subtle aspects of Rust is how traits can be used as types. In this blog post I will attempt a bit of a deep dive into how to use traits as types and how to choose between the different forms. Preliminary: traits are not typesA type | ||