.. what would its key features/syntax be?
Perhaps I'm getting older and finding programming languages more alien-looking than ever but it got me thinking, If I could create my own programming language what would its key features and syntax look like.
First things first, I hate typing. So the language would require absolute minimalistic coding.
I would incorporate as many short-cut programming methods as possible.
Next, I'd take a heavy pinch of Pythons tabbed spacing which defines code blocks.
Finally, reduce the need as much as possible of having to type shifted characters like " {} &
Putting it all together then, instead of having to type something very ugly and messy (C++ example):
My minimalistic code would shrink the above down to:
In cases where you need to know the loop count ..
Before:
After:
My philosophy is, less is more.
Perhaps I'm getting older and finding programming languages more alien-looking than ever but it got me thinking, If I could create my own programming language what would its key features and syntax look like.
First things first, I hate typing. So the language would require absolute minimalistic coding.
I would incorporate as many short-cut programming methods as possible.
Next, I'd take a heavy pinch of Pythons tabbed spacing which defines code blocks.
Finally, reduce the need as much as possible of having to type shifted characters like " {} &
Putting it all together then, instead of having to type something very ugly and messy (C++ example):
B4X:
for (i=0,i<5,i++){
DoStuff("hello world");
}
B4X:
5 times
DoStuff 'hello world'
In cases where you need to know the loop count ..
Before:
B4X:
for (i=0,i<5,i++){
printf("hello world" + i);
}
B4X:
5 times i
? 'hello world'+i ' ? is shortcut for print (C64 days!)
My philosophy is, less is more.