yes on Nostr: its ridiculous how much overly complex #apis js has, and why do these apis use weird ...
its ridiculous how much overly complex #apis js has, and why do these apis use weird callback structures rather than #await #async?
like why the fuck do i need to write:
ws.onopen = function(){
ws.send()
}
ws.onmessage = function(){}
instead of:
await ws.open()
const response = await ws.send()
#mozilla #chrome #google #devs #w3c
can you write proper apis, thanks
like why the fuck do i need to write:
ws.onopen = function(){
ws.send()
}
ws.onmessage = function(){}
instead of:
await ws.open()
const response = await ws.send()
#mozilla #chrome #google #devs #w3c
can you write proper apis, thanks