Replacing implicit optionals with a None type in TypeDB
flyingsilverfin
13 points
2 comments
November 17, 2026
Related Discussions
Found 5 related stories in 40.1ms across 3,874 title embeddings via pgvector HNSW
- Union Types and Option Types (2025) g0xA52A2A · 61 pts · November 02, 2026 · 43% similar
- High Stakes Are Strongly Typed supo · 18 pts · November 19, 2026 · 40% similar
- Compile-Time Dependent Types ibobev · 79 pts · October 26, 2026 · 40% similar
- Show HN: Gawain – Require type hints on all Python variables MarinhoD · 19 pts · November 15, 2026 · 36% similar
- Context-Generic Programming v0.8.0 – Pluggable trait implementations for Rust maybevoid · 26 pts · November 18, 2026 · 36% similar
Discussion Highlights (2 comments)
flyingsilverfin
Hi HN, I work on TypeDB. We recently made a major architectural change to our query language and type system: stripping out implicit optionals and introducing an explicit None type. Historically, implicit optionals in our schema design caused a few recurring headaches—most notably not being able to switch on emptiness, and queries silently changing behavior when an existing variable was made optional. We looked at how functional languages handle this with explicit Option/None types and decided to bring that strictness to the database level. We actually ended up borrowing the most from languages like Kotlin, using our existing union-of-types model to naturally accommodate the new None type. We had a lot of fun wrestling with the semantics and language design while making this change. I'd love to hear how others have thought about designing nullability and type strictness. Happy to answer any questions!
dfee
qq: i know nothing about TypeDB, this is a meta-comment, though. i've noticed a few times that the author submits something, and makes a comment, and that comment is marked [dead]. is that a bug, policy, or protocol?