D already has namespaces: https://dlang.org/spec/attribute.html#namespace A struct can also be used as a namespace: ``` struct c { import sqlite3, miniz; } ``` I've been using field-less structs this way myself.