# Zig Authors - Zig Language Reference (Highlights) ![rw-book-cover|256](https://readwise-assets.s3.amazonaws.com/static/images/article4.6bc1851654a0.png) ## Metadata **Review**:: [readwise.io](https://readwise.io/bookreview/56214302) **Source**:: #from/readwise #from/reader **Zettel**:: #zettel/fleeting **Status**:: #x **Authors**:: [[Zig Authors]] **Full Title**:: Zig Language Reference **Category**:: #articles #readwise/articles **Category Icon**:: 📰 **URL**:: [ziglang.org](https://ziglang.org/documentation/master/) **Host**:: [[ziglang.org]] **Highlighted**:: [[2025-11-13]] **Created**:: [[2025-11-15]] ## Highlights - The inline calling convention forces a function to be inlined at all call sites. ([View Highlight](https://read.readwise.io/read/01k9wxz03nvf0v8xgvnhewpga6)) ^956908478 - Function pointers are prefixed with `*const `. ([View Highlight](https://read.readwise.io/read/01k9wxrvmdp2s5tgqtgw7v4nsa)) ^956907955 - An error set is like an [enum](https://ziglang.org/documentation/master/#enum). However, each error name across the entire compilation gets assigned an unsigned integer greater than 0. You are allowed to declare the same error name more than once, and if you do, it gets assigned the same integer value. ([View Highlight](https://read.readwise.io/read/01k9ym76vj83q07zdq01jhp9sa)) ^957082316 - const err = error.FileNotFound; ([View Highlight](https://read.readwise.io/read/01k9yma8zs7cw3ys93wj90zwrx)) ^957082495 This is a shortcut for declaring an error set with only 1 value, and then getting that value - `anyerror` refers to the global error set. This is the error set that contains all errors in the entire compilation unit, i.e. it is the union of all other error sets. ([View Highlight](https://read.readwise.io/read/01k9ymb4nmh2x7wtyr6cfzd75t)) ^957082541 - `try` evaluates an error union expression. If it is an error, it returns from the current function with the same error. Otherwise, the expression results in the unwrapped value. ([View Highlight](https://read.readwise.io/read/01k9yme22drk0hkrft8znhke52)) ^957082660 - Maybe you know with complete certainty that an expression will never be an error. In this case you can do this ([View Highlight](https://read.readwise.io/read/01k9ymekvq5zrjzcwmjvdfqxea)) ^957082676 cache unreachable