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

🖥A "10PRINT" Variant, BAMified

This program by Charlie Veniot is a port and mod of Ian Witham's C64 program found in this YouTube video. New colours are randomly proje...