Comment by WorldMaker
Comment by WorldMaker 13 hours ago
How are `const` and `import` half-baked or broken? They work great, and do what they are supposed to do. Browser support is great today for both.
Comment by WorldMaker 13 hours ago
How are `const` and `import` half-baked or broken? They work great, and do what they are supposed to do. Browser support is great today for both.
"Const" is half baked as it implies that you declare an immutable value, but it only prevents redeclaration and direct reassignment.
"Import" breaks the browser REPL and the dynamic nature of JS. You can't redeclare, look or move into a module. Now JS is already broken in that you can't redeclare variables declared with let/const. But not being able to move into modules an extra crime.