Message from JavaScript discussions

September 2020

— Nope is nope man!

— 

Language:

js


Source:
console.log(`${1 in [1, undefined, 2]}, ${1 in (()=>{let a = []; a[0] = 1; a[2] = 2; return a;})()}`)


Result:
true, false

— You mean template literals?

— Ye, better functional style one-liner🤤 my point was about higher levels of purism, but making tiny tests is fine..

Message permanent page

— Should be

a = ...
b = ...
c = ...
console.log a, b, c

— But no const - progress🤤

— Did I already express my disgust for fn a, b, c? At least fn a b c

— Commas denote an instruction change!

— Like tsc's __spreadArray, it has a for in it like for (let a, let b; a < b; a++) or smth

— Nope man, it's an explicit list, may be omitted ofc

— I read fn a b c as fn(a, b, c) and fn a,b,c as fn([a, b, c])

— How do you read [a b c] then