# TypeDB swaps implicit optionals for a real None type

Original title: Replacing implicit optionals with a None type in TypeDB

> Hacker News story 50535504 · language: en · submitted 2026-11-17
> Web version: https://zeli.app/story/50535504
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 13 · by [flyingsilverfin](<https://news.ycombinator.com/user?id=flyingsilverfin>) · 💬 2
[original](<https://typedb.com/blog/replacing-implicit-optionals-with-a-none-type-in-typedb>) · [HN discussion](<https://news.ycombinator.com/item?id=50535504>)

## Summary

TypeDB has auto-unwrapped optional variables since version 3.4, a convenience that can quietly change a query's answers and leaves no way to test for emptiness. Version 3.15 deprecates that behavior and adds a native None type, an isset constraint for filtering unset variables, and if conditionals for write clauses. Making a variable optional now forces explicit handling downstream, much like Rust or Kotlin, so the compiler catches missing cases before queries run.

## Key quote

> You don't just silently get a different answer set that looks okay, without considering the consequences.

---

## Cite

- Page: https://zeli.app/story/50535504
- Date: 2026-11-17
- Source: typedb.com (https://typedb.com/blog/replacing-implicit-optionals-with-a-none-type-in-typedb)
- Hacker News: https://news.ycombinator.com/item?id=50535504

## Other languages

- zh: https://zeli.app/zh/story/50535504 · markdown: https://zeli.app/zh/story/50535504.md
- ja: https://zeli.app/ja/story/50535504 · markdown: https://zeli.app/ja/story/50535504.md
- ko: https://zeli.app/ko/story/50535504 · markdown: https://zeli.app/ko/story/50535504.md
- de: https://zeli.app/de/story/50535504 · markdown: https://zeli.app/de/story/50535504.md
- es: https://zeli.app/es/story/50535504 · markdown: https://zeli.app/es/story/50535504.md
- ru: https://zeli.app/ru/story/50535504 · markdown: https://zeli.app/ru/story/50535504.md
