Comment

Comment by judge2020

If it was written like

  while true {
    let hello = "world";
  }
The scope would keep getting freed then re-allocated, which will be slower than simply continuously setting an existing variable's memory location over and over again.
parent judge2020 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton