Almost Idiomatic D Code