D is also primarily garbage collected. You had an option to create scoped classes (allocated on stack) but it&#x27;s apparently deprecated now.<p>I think Swift would be a better example here. Or objective C with ARC.