Bhailang Programming Language

Bhailang

Bhailang is a dynamically typed toy programming language and it is based on an inside joke, written in Typescript, and makes programming more fun.

Bhailang is a new programming language introduced by two Indians named Rishabh Tripathi and Aniket Singh, both are software development engineers at Groww and Amazon respectively.

You can check the Bhailang programming language from its official website – bhailang.js.org and its source code may be accessed from here: https://github.com/DulLabs/bhai-lang

Their website provides a playground in which you can hands-on and practice the Bhailang programming language.

Bhailang Playground

What is Bhai-Lang?

Bhai is a Hindi word used for brother.

India follows Brotherhood and so the programming language does.

In order to use this language, a proper syntax need to be followed which is quite funnier and easy, users are required to write “hi bhai” as the entry point code while everything must end with “bye bhai.”

All code written inside these tags will be valid while everything outside of it will be ignored.

Below is a sample program implemented in their playground

 hi bhai
 bol bhai "We love TechnoName";
 
  bhai ye hai a = 3;

  jab tak bhai (a > 1) {
    bol bhai "TechnoName loves you too !";
      a-=1;
  }
bye bhai

Output :

 Shandaar bhai πŸŽ‰
> We love TechnoName
> TechnoName loves you too !
> TechnoName loves you too !

On successful execution of your program, it gives output starting with “Shandaar bhai πŸŽ‰”, but if you got any compilation error then it shows golden words spoken by Ashneer Grover in Shark Tank India as

“❌ Arre Bhai Bhai Bhai !!!> kya kar rha hai tu??”

Above error case is shown in below example :

hi bhai
 bol bhai "We are missing semicolon in this line"
bye bhai

Output :

❌ Arre Bhai Bhai Bhai !!!
> kya kar rha hai tu??...Unexpected token: "bye bhai", expected : ";"

After the announcement of the new programming language Bhailang, people are visiting their website and trying some funny hands-on code which is trending on LinkedIn,

Below is some stuff that I tried which shows the interview process between candidate and HR :


hi bhai
 bol bhai "YE HAI HR AND INTERVIEW PROCESS";
 
  bhai ye hai Interview = "CLEAR";

    agar bhai (Interview == "CLEAR"){
      bol bhai "Badhai ho, salary discuss karlen !";
    }
    warna bhai{
      bol bhai "Chalo Milte hai fir kabhi";
    }
bye bhai

OUTPUT :

Shandaar bhai πŸŽ‰
> HR AND INTERVIEW PROCESS
> Badhai ho, salary discuss karlen !

Thank you for reading this article so far, if you know some funnier code related to Bhailang then you can leave a comment here or mail us at technonamecontact@gmail.com.

Thanks for reading this article so far. If you like this article, then please share it with your friends and colleagues. If you have any questions or feedback, then please drop a note.

You can also follow us on Twitter for daily updates.

One response to “Bhailang Programming Language”

  1. It’s genuinely very difficult in this active life to listen news on Television, therefore I only use web for that purpose, and obtain the most up-to-date news.|

Leave a Reply

Your email address will not be published. Required fields are marked *