DulLabs / bhai-lang

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

Feature Request: Exception Handling #249

Open vivekkeshore opened 2 years ago

vivekkeshore commented 2 years ago

Is your feature request related to a problem? Please describe.

It would be a nice addition to have exception handling.

`` bhai panga ho sakta hai bhai ye hai x = 1 bhai ye hai y = 0 bol bhai x/y bhai zerodivision panga bol bhai "Zero se divide nahi kar sakte" bhai kuch bhi ho //finally bol bhai "Kuch bhi ho, ye to chalna hi chahiye"

``

Describe the solution you'd like.

No response

Describe alternatives you've considered

No response

Additional context.

Nalla