You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
garbage collector
currently, coco has some type of scoping with hashmap stored variables (which is probably great for toy interpreter), but it'll be better if there was a garbage collector.
hoisting
js has function hoisting.
// sort of arrow functions will be introduced later, because those `let sum = (a, b) => a + b` is horrible and cannot be hoisted.
let preHoist = hoistedSum(1, 2)
fun hoistedSum(a, b) -> a + b
let postHoist = hoistedSum(3, 4)
log(preHoist, postHoist) // 3 7
The text was updated successfully, but these errors were encountered:
garbage collector
currently, coco has some type of scoping with hashmap stored variables (which is probably great for toy interpreter), but it'll be better if there was a garbage collector.
hoisting
js has function hoisting.
The text was updated successfully, but these errors were encountered: