DEV Community

Discussion on: I need your feedback about a new programming language idea to improve its design.

Collapse
 
mak12776 profile image
Mohammad Amin Khakzadan

Yes, a beginner might not immediately understand len, but a profession wants short sentences to spell less time to write. So, it's better to teach the beginner what we mean by len.

function is not a keyword, it's a variable. you are defining function as being a function. what I said at the beginning of the article is that there's no keyword that will be understood by the language compiler, the compiler will just understand symbols. that is another way of writing a short sentence for speed efficiency.

It will be a language like python or javascript, a general purpose language. I did not explain it completely. So it's hard to understand the purpose of the language.

Collapse
 
jeyj0 profile image
Jannis Jorre

I don't think the "less time to write" argument is so valid, because auto-complete is a thing, and it will probably complete a simple l to length if it's good. Does require more tooling though.

But I'm always the person who'd rather have long words and avoid all abbreviations. :D

Function being a variable is interesting! Didn't get that/remember it correctly.

Have fun and good luck with the language!😇

Thread Thread
 
mak12776 profile image
Mohammad Amin Khakzadan • Edited

yea, function is a variable. it's not like python, ruby or whatever else.

def = 1;
module = 1;
func = 1;
lambda = 1;
something = 1;

all of them are variables, we have no limit for choosing our variable names.