Tuesday, February 14, 2023

🆕 Square brackets and curly brackets in complex expressions

(and simple expressions too !)

Up until today, and like other BASIC implementations, BASIC Anywhere Machine only allowed the use of parentheses in expressions.

Now, BASIC Anywhere Machine gives you the option to use square brackets (i.e. "[" and "]") and curly, I prefer "squiggly", brackets (i.e. "{" and "}") in expressions.

Using these in BASIC Anywhere Machine will result in an effort to replace those brackets with parentheses IF and WHEN porting BASIC Anywhere Machine programs to other BASIC implementations.

Some may find that mixing of brackets and parentheses confusing, especially when used to other BASIC implementations and/or when used to seeing brackets used in other programming languages and in a different context.

It is up to you to decide the pros, the cons, the cost/benefit.  You have the option if you like it.


Try it out: BASIC Anywhere Machine


No comments:

Post a Comment

🖥 Flower Tesselation: Testing DRAW and recursive SUB's

This BAM program inspired by Richard Russell's "Flower-like tesselation" BBC BASIC program posted on Facebook . Created in ord...