TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
Go: Functional Options are named args on steroids
3 points
by
vmihailenco
over 3 years ago
1 comment
DeathArrow
over 3 years ago
In both C# and Nim (and probably other languages ) it's easy to use fluent syntax:<p>MyConfig() .WithTimeout(0).WithDir("/home").DirFromEnv("DIR")