DulLabs / bhai-lang

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

Support for "Ye Kar lo Pehle" #97

Closed bj8798 closed 2 years ago

bj8798 commented 2 years ago

Description

Import statement with the syntax as "Ye Kar lo Pehle"

Domain

Develop

Type of Contribution

Enhancement

Code of Conduct

dar5hak commented 2 years ago

Alternative syntax:

bhai 'react' se useState, useEffect le aa;
bhai 'lodash' se sab le aa; // import * as lodash from 'lodash';
adityapalve commented 2 years ago

"Ye karlo pehle" can be a good error to throw for imports.

yogeshjain999 commented 2 years ago

Alternative syntax:

bhai 'react' se useState, useEffect le aa;
bhai 'lodash' se sab le aa; // import * as lodash from 'lodash';

This can be also written as

bhai 'react' se useState, useEffect utha le;
bhai 'lodash' se sab utha le; // import * as lodash from 'lodash';
aniketsingh0104 commented 2 years ago

No current plans to add this feature in this language as this will lead to more complexities in this toy language.