by usrbinbash · 3y ago · 0 comments
What is "natural programming" supposed to be?
> Dragon Native
What is dragon native? How does it differ from Dragon? Where is this difference explained? I mean, this is right in the middle of the top thing I see on the webpage.
From the docs:
show and showln operators are used to output text.
What is the advantage of making these operators instead of functions like `printf()`?From the docs:
readChar(f) - reads one char (2 bytes). Returns number char's code
What is the definition of "char" here? Why is a "char" 2 bytes long?From the docs:
for initializing, condition, increment {
body
}
// or
for (initializing, condition, increment) {
body
}
// or
for (initializing, condition, increment)
body
end
Why are there multiple ways of writing the same syntactic construct?From the Dragon native documentation:
Not Case-Sensitive
Since the Dragon native is not case-sensitive, the same program can be written in different styles
In the very next sentence, the documentation states this: It’s better to select one style and use it in all of the program source code
So why not just enforce a style in the first place?This always seems like a good idea until many people start using it different ways
There’s a reason tons of languages from python to zig all have said they want “only one way of doing something”
Being forced just annoys me and keeps me from using the language at all. (Because languages differ here extremely.)
If the documentation says "there is a thing named foobar", but in the code I can see Foobar, FooBar, FOOBAR, FOObar, etc. used interchangeably, that's not gonna help readbility and maintainability.