I have a very nit-picky suggestion: changing .len to .length.
I have a few reasons:
Number one, it's that tiny bit more clear. A beginner might not immediately understand len, but length is very intuitive.
Number two is that you've adhered to this "longer" style before with the keyword function. I like that a lot, because of its expressiveness, and I think it should carry through.
I have one question left: what's this language for?😇 Is it for fun, or does it actually serve a specific use-case? That might help with giving suggestions what could be changed/added/improved!
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.
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.
I have a very nit-picky suggestion: changing
.lento.length.I have a few reasons:
Number one, it's that tiny bit more clear. A beginner might not immediately understand len, but length is very intuitive.
Number two is that you've adhered to this "longer" style before with the keyword
function. I like that a lot, because of its expressiveness, and I think it should carry through.I have one question left: what's this language for?😇 Is it for fun, or does it actually serve a specific use-case? That might help with giving suggestions what could be changed/added/improved!
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 bylen.functionis not a keyword, it's a variable. you are definingfunctionas 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
pythonorjavascript, a general purpose language. I did not explain it completely. So it's hard to understand the purpose of the language.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
ltolengthif 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!😇
yea,
functionis a variable. it's not like python, ruby or whatever else.all of them are variables, we have no limit for choosing our variable names.