4 ms·
BASIC has a very inconsistent syntax, and did so from the very first version. Over time it got worse. For a specific example, just look at the syntax for drawi
by int_19h 8y ago
BASIC has a very inconsistent syntax, and did so from the very first version. Over time it got worse.
For a specific example, just look at the syntax for drawing primitives like PSET, LINE or CIRCLE. Something like this is neither particularly discoverable, nor consistent with the normal function call syntax in the language:
LINE (0, 0) - (100, 100), 2, FB
(I wonder how many people with BASIC experience from that era remember what "FB" means here.)
- DanBC 8y agoBF fills the box, and does something wierd with the x1, y1, and x2, y2 coords. I'm not persuaded by "discoverable"; you'd get a book that included a page for every statement with a worked example.
- int_19h 8y agoYou have to know where to start looking though, and it's not at all obvious that LINE is what you need to draw a filled rectangle. It also throws you off once you learn about subprograms (in dialects that had them), and realize that all this stuff is almost but not quite like them - and all the differences are there for no good reason.