Show newer

@vaporeon_ using some kind of templating ithout needing dynamic rendering

@vaporeon_ somehow there is a wasm compiler fur ocaml, which i’m kinda surpurrised is pawsible, given that ocaml is garbage collected

@vaporeon_ an arguably funnier thing you can do is compile ocaml to js

@wallhackio @vaporeon_ yeah var is one of those early design decisions with surpurrisingly frustrating implications fur js implementations because it makes it impawsible to reliably parse in linear time—if you come across what may be an identifier, you do not know until later whether it is actually refurring to something or not

@vaporeon_

// i is in scope HERE!!
for (var i = 0; i < 10; i++) {
// ...
}
// i is still in scope!

@vaporeon_ let uses lexical scope. var ignores most blocks aside from function boundaries, and also hoists

@wallhackio @vaporeon_ if you look into the semantic diffurences between for with let and var scoped variables, this is not surpurrising; the furmer is surpurrisingly complicated. const allows fur some optimizations over let though iirc

eeveelution that you would expect to be the cause of a house fire

@wallhackio we’re both lucky i can’t find the comic i’m looking fur

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.