programming-technique

Tag

Cards List
#programming-technique

Faking keyword arguments to functions in C++

Hacker News Top · 2026-06-09 Cached

This article demonstrates a technique to simulate Python-style keyword arguments in C++ by using structs with designated initializers, improving code readability without macros or template magic.

0 favorites 0 likes
#programming-technique

Even More Tagged Union Subsets with Comptime

Lobsters Hottest · 2026-05-19 Cached

This article explores using Zig's comptime to create tagged union subsets, inspired by Mitchell Hashimoto's work, and applies the technique to a MyST parser's AST traversal.

0 favorites 0 likes
← Back to home

Submit Feedback