May 25, 2018

let vs. read-only (computed)

  • let means constant, and cannot be set after initialized.
  • read-only also means cannot be set but since it is computed so it could return different value at different times.