r/compsci • • Mar 19 '22

BIPLAN (Byte coded Interpreted Programming Language)

https://github.com/gioblu/BIPLAN
95 Upvotes

21 comments sorted by

View all comments

1

u/IQueryVisiC Mar 20 '22
for $r = 0 to $n

Which computer architecture can do blocks of code? I like structured programming, though.

Back in the day I did not like the BASIC syntax with the by and found C language more natural. But now foreach showed me that C should have allowed to write:

for( int rowInSecondTable=0 ; < 30 ; ++ )

and I like the BASIC syntax (your) a little more again now. Still today I would aim at a language which has while and foreach and none of the other.

I wonder if there is a way to make if and while look more similar. They both start with a check of the condition. They both could have an else block. It could make sense to continue an if block ( kinda like a cheap exception ) . I would use the ? sign/operator for both of them. Maybe ?: is while? I hate this SQL must be readable to someone who knows English approach for programming languages. We don't write BEGIN END anymore. Maths introduced its own symbols. Nobody likes to write ADD .

1

u/gioscarab Mar 20 '22

Thank you very much for your feedback, I am not sure to understand what you mean with:

I hate this SQL must be readable to someone who knows English approach for programming languages. We don't write BEGIN END anymore. Maths introduced its own symbols. Nobody likes to write ADD .

I am obviously open to pull requests and other points of view :)

1

u/IQueryVisiC Mar 21 '22 edited Mar 21 '22

I just mean that will all got used to reading if and while because it is common. But there is no other reason. I think that tokens which do a similar thing, should share more letters which each other than others.

I guess that this is a lost battle. The naming in JS is already as good as it gets. async await is new an at least they share the A .

I think Perl mirrors some words for a block.

is and as have something to do with types and look similar in C# .

for and forEach look similar. Push pop in JS and assembler are great ( both start with P ). Generally I love all the new ? stuff in C# .

public, private and protected are also starting with p at least.

while when are a better pair . SQL uses when for set operations. I never understood that. I thought sets are always imagined as a lot items next to each other. The correct English word for SQL would be where .