DulLabs / bhai-lang

A toy programming language written in Typescript
https://bhailang.js.org/
MIT License
3.99k stars 498 forks source link

Support for Promises #208

Closed shashvattrip closed 2 years ago

shashvattrip commented 2 years ago

Description

Enable Promise support with creation of Promises, handling resolutions and rejections, and the finally block.

  1. bhai main dekhlunga (new Promise())
  2. bhai dekhliya(then())
  3. bhai nai dikh raha (.catch())
  4. bhai bas tu dekhle (.finally())

Domain

Bhai Lang

Type of Contribution

Addition

Code of Conduct

nair-sreerag commented 2 years ago

how about changing point 3 to bhai kuch gadbad hai

OmkarK45 commented 2 years ago

How about naya Vada (वादा) for new Promise ?

aniketsingh0104 commented 2 years ago

No current plans for adding support of pormises.