TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Go: Functional Options are named args on steroids

3 pointsby vmihailencoover 3 years ago

1 comment

DeathArrowover 3 years ago
In both C# and Nim (and probably other languages ) it&#x27;s easy to use fluent syntax:<p>MyConfig() .WithTimeout(0).WithDir(&quot;&#x2F;home&quot;).DirFromEnv(&quot;DIR&quot;)