Learning Zig - Style Guide

from blog openmymind.net, | ↗ original
Language Overview - Part 2 Intro Pointers Style Guide In this short part, we'll cover two coding rules enforced by the compiler as well as the standard library's naming convention. Unused Variables Zig does not allow variables to go unused. The following gives two compile-time errors: const std = @import("std"); pub fn main() void {...