Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make It an ACTUAL programming language. #170

Open
1 task done
electrolyte-orb opened this issue Mar 15, 2022 · 14 comments
Open
1 task done

Make It an ACTUAL programming language. #170

electrolyte-orb opened this issue Mar 15, 2022 · 14 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@electrolyte-orb
Copy link

Description

To make it a serious programming language, we'll need to add atleast barebones for a lang.

  1. Static types bhai ye hai a = 0 to
    bhai ye shabd hai a = "strings"
  2. Runtime features
    dekh $PATH for getting current PATH.
  3. Add more data types.
Type Syntax
String shabd
Number ginti
Array dhara
Object Could be determined by the class
  1. Object oriented features like class(for very least) and inheritance(for mainstream langs)

Domain

Bhai Lang

Type of Contribution

Enhancement

Code of Conduct

@electrolyte-orb electrolyte-orb changed the title Add generics and static types Make It an ACTUAL programming language. Mar 17, 2022
@thecodacus
Copy link

mai ispe contribute karu bhai??

@electrolyte-orb
Copy link
Author

mai ispe contribute karu bhai??

If you are sure in every way(like optimization, size, complexity) then just go ahead 😋

@thecodacus
Copy link

added a PR for Funda, it will introduce functional programming

you can check it in preview build https://6234ac37ec8e100008f579b5--bhailang-preview.netlify.app/#playground

@electrolyte-orb
Copy link
Author

added a PR for Funda, it will introduce functional programming

you can check it in preview build https://6234ac37ec8e100008f579b5--bhailang-preview.netlify.app/#playground

bhai you are awesome!

Lekin homepage me bhi toh funda daal do.

@electrolyte-orb
Copy link
Author

electrolyte-orb commented Mar 19, 2022

Should I close this issue now?

Edit: although less than 10% of my issue is resolved.

@thecodacus
Copy link

I am working on adding class

@aniketsingh0104 aniketsingh0104 added the enhancement New feature or request label Mar 19, 2022
@aniketsingh0104 aniketsingh0104 added the help wanted Extra attention is needed label Mar 19, 2022
@thecodacus
Copy link

How does this look??
these features are built on top of the changes in the last PR, I can add a PR once the last PR is accepted

image

@electrolyte-orb
Copy link
Author

You are just awesome!

@electrolyte-orb
Copy link
Author

electrolyte-orb commented Mar 20, 2022

How does this look?? these features are built on top of the changes in the last PR, I can add a PR once the last PR is accepted

image

Hey wait. 😐 Where is new keyword implementation?

What you have implemented is just same as getting output of a function. I think just refactor and everything will be just fine.🥲

samajh le bhai janwar {
}

samajh le bhai kutiya jo ki ek janwar hai {
// Same
}

Bhai ye hai Alice = bana kutiya()

kutiya.bhouk()

I'm using bana as new but you can use a better keyword

@thecodacus
Copy link

new is not necessary for this (take python for example), by default it creates a new object, and it's different than a function, functions will not have methods of it's own or it's own data members,

see the example below:

image

@electrolyte-orb
Copy link
Author

new is not necessary for this (take python for example), by default it creates a new object, and it's different than a function, functions will not have methods of it's own or it's own data members,

see the example below:

image

I've only worked with JS/TS and C#. Both of them use new so I thought same for bhailang. But python's implementation is also good.

@PositiveUser
Copy link

naya keyword can be used

@electrolyte-orb
Copy link
Author

electrolyte-orb commented Mar 22, 2022

No need for unintended naya if @thecodacus has already implemented it(python like syntax).

@thecodacus
Copy link

#257 Added a pr for class feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants