💾 Archived View for bbs.geminispace.org › u › greg captured on 2024-12-17 at 15:10:48. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

🌲 u/greg

🌒 Subspaces

📖 Help

❤️ Code of conduct

Sign up

Posts

🌲 greg

No, you can't build Optional[T] or Maybe[T] with Go — From time to time, someone shows up on Mastodon, in /r/golang, or on the Gophers Slack to show how they implemented optional values like you see in Haskell, OCaml, TypeScript, or Rust in Go. All of these approaches have one thing in common: they're not really Optional[T] or Maybe[T]. They look like it on the surface: there are generics involved, they may have a "is this valid?" boolean flag field, the name is right, etc... What all of...

💬 4 comments · 3 likes · Oct 22 · 8 weeks ago · #go

Options

🗣️ Sort by activity

🔥 Sort by hotness

Gemini feed

Atom feed

Tinylog