I have known about JavaScript generator functions for years, but never really found a reason to use them. They always felt a bit like over-engineering, but recently, while working on Servo DevTools, I finally found a real use case for function* JavaScript
Heap allocation refers to allocating memory on the heap, which is an area of memory managed by the operating system. I will be focusing on Box< T > and Vec< T > methods in this post