TodePond / DreamBerd

perfect programming language
https://dreamberd.computer
Other
10.65k stars 305 forks source link

[Feature Request] Add broken promises #588

Open jackbridger opened 4 months ago

jackbridger commented 4 months ago

There should be no such thing as resolve, only reject

I think it could be quite handy

It might be something like this:

const const const myBrokenPromise👎 = new broken Promise((reject) => {
  reject(1️⃣)
});