05:1705:17, 26 September 2022diffhist+1,312
Option type
→Zig: In Zig, add ? before the type name like <code>?32</code> to make it optional type. Payload <var>n</var> can be captured in an ''if'' or ''while'' statement, such as <syntaxhighlight lang=zig inline>if (opt) |n| { ... } else { ... } </syntaxhighlight>, and anTag: 2017 wikitext editor
05:1705:17, 26 September 2022diffhist+1,312
Option type
→Zig: In Zig, add ? before the type name like <code>?32</code> to make it optional type. Payload <var>n</var> can be captured in an ''if'' or ''while'' statement, such as <syntaxhighlight lang=zig inline>if (opt) |n| { ... } else { ... } </syntaxhighlight>, and anTag: 2017 wikitext editor