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: array.map() to array.ghumabhai() and const to pakka #286

Open ZiaRoshan opened 6 months ago

ZiaRoshan commented 6 months ago

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

No response

Describe the solution you'd like.

No response

Describe alternatives you've considered

No response

Additional context.

const doubledNumbers = numbers.map(function (number) { return number * 2; });

In Bhai Lang

pakka doubledNumbers = numbers.ghumabhai(row => { de bhai number * 2; })

pokhiii commented 6 months ago

@ZiaRoshan if ghumabhai for map, can also suggest something for forEach?

ZiaRoshan commented 6 months ago

@pokhiii For forEach it can be something like "har ek ke liye bhai" or something like that