Show newer

@aescling so no, it isn’t advancing, but it isn’t abandoned

@aescling Stage 1; last presented June 2020; seems like there was general support for it but some spec work to be done before it could advance to Stage 2; looks like they’re still hashing some things out, in particular in relation to break/return

@aescling const has block scope and can’t be reassigned, so you have to use an IIFE plus a return if you want the value of a const to be determined within a block but available outside of it. this is in fact one of the the only reasonable applications of IIFEs in modern javascript code, but it’s very useful.

// Doesn’t work:—
{
const foo = "🎱"
const bar = `${ foo }ball`
}
console.log(bar)

// Works:—
const bar = (() => {
const foo = "🎱"
return `${ foo }ball`
})()
console.log(bar)

@Satsuma i feel like the more common form of this trope is where the speech happens after the ship has already sailed regarding B’s plot and they wish they could take it back or try to

list of delicious foods (incomplete) 

• tamales

using IIFEs just to give these javascript files some sense of structure

i don’t ⁜like⁜ it but this is a situation where you just gotta bow to common practice

especially since i use a nonstandard 71‐char linelength

Show thread

begrudgingly adopting 2‐space javascript in deno since you can just set up your own config file and run `deno fmt` if you have different spacing requirements

@aescling the reasons being that rich people shouldn’t have money

@aescling i would agree that you should not make funding your priorities dependent on rich people having money, but for different reasons

@witchfynder_finder i mean even if your first‐line manager is also the owner they’re still probably only petty bourgeois

anyway you should use ᚴ for S so you don’t look like a nazi

Show thread

it’s lice trjing tu write english lice this

that's not how we spell

Show thread

honestly i have zero idea where anglophonic rune fanatics get their alphabet like i’m not sure they even realize the english and north germanic traditions are… different

Show thread

why would you write english in runes using the bad S latter when you could write english in runes using the good S letter

i should not have to write this (but i do) [typescript] 

for (
const nodeType of /** @type {(typeof NODE_TYPE.SECTION|typeof NODE_TYPE.HEADING|typeof NODE_TYPE.BLOCK)[]} */(
[
NODE_TYPE.SECTION,
NODE_TYPE.HEADING,
NODE_TYPE.BLOCK,
]
)
) { /* … */ }

this is one of those “things which are allowed in JavaScript which an ordinary language never would have allowed” moments

Show thread
Show older
📟🐱 GlitchCat

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