Bhai Lang: A Programming Language That Might Help You Brush Up Your Hindi

Software development engineers Rishab Tripathi and Aniket Singh have created a new JavaScript library for a toy programming language called Bhai Lang. It works like any other programming language but is a tad bit more fun than everything else out there. Why? Because it is all “bhai bhai”.

Also Read: Here’s How The Students Of NIT Calicut Created A Virtual Campus

The entire code conversation in Bhai Lang revolves around the word “Bhai” (“bro” in Hindi) and while it is quite hilarious, it is also easy to pick up. For example, here’s Bhai Lang’s equivalent of “hello world”:

Bhai Lang Hello Bhai

As you can see, the entrypoint for the program is “hi bhai” and the program must end with “bye bhai”. All code inside of these tags is considered valid and everything outside it is ignored.

Variables on Bhai-Lang are declared using “bhai yeh hai”. Null values are denoted using “nalla” and boolean values are denoted using “sahi” for true and “galat” for false. “bol bhai” is used to print something on the console.

If your code works fine, Bhai Lang says, “Shandaar bhai 🎉” and returns the output. But if you’ve made an error, it says, “❌ Arre Bhai Bhai Bhai !!! KYA KAR RHA HAI TU??”

Also Read: Types Of College Students That We Were Friends With

The programming language also has conditional and loops, all based around the world “bhai”. Do check out their GitHub repo for details and documentation.

Once you get a hang of it, you can try your code at the Bhai Lang playground. Since it is all Hinglish, I guess you’ll brush up on basic Hindi while you have some fun tinkering with Bhai Lang.

Looking for something similar in Malayalam? Check out malluscript on GitHub.

To know more about Accubits, click here.
Govindan Khttp://www.pinklungi.com
I believe in challenging the status quo; I believe in thinking differently. I think differently because I try to absorb knowledge from anyone - regardless of the industry they’re working in.

Tell us what you're thinking

Subscribe to our newsletter

We'll send you a monthly newsletter with our top articles of the month

Latest Posts