pveyes / naskah

Bahasa pemrograman dengan sintaks Bahasa Indonesia (Programming language with Indonesian syntax) 🇮🇩
https://naskah.vercel.app
MIT License
179 stars 11 forks source link

Change variable declation syntax from `misal` to `ada` #12

Closed rmdwirizki closed 6 years ago

rmdwirizki commented 6 years ago

It's shorter and more explicit. Just my 2 cents.

from

misal x = 4;
misal y = x;

to

ada x = 4;
ada y = x;
pveyes commented 6 years ago

The reason of using misal instead of other options is that it's a literal translation from let.

In this project, the goal is not to have shortest syntax as possible because the target audience is people who just started to learn programming, thus brevity is not necessary. Besides, misal is as long as const (both have 5 chars), the difference being the latter only have 1 vowel so it sounds shorter.

I'm open for any suggestion, but personally I don't think ada is the right replacement

rmdwirizki commented 6 years ago

I see, thats rather clear, I agree with you at some points.. this is just my personal opinion though.