r/Basic • u/CharlieJV13 • Feb 15 '23
BAM Update: For one dimension arrays: 🆕 Array initialisation 🆕 Constant Arrays
https://basicanywheremachine-news.blogspot.com/2023/02/for-one-dimension-arrays-array.html
3
Upvotes
View all comments
Show parent comment
2
u/CharlieJV13 Feb 15 '23
If performance were really bad, then I'd use meta-programming instead of constants.
<$let GREETING="Howdy, buddy.">
PRINT "<<GREETING>>"
</$let>
The preprocessor, before the BASIC programming gets passed to wwwBASIC.js, would replace every occurrence of <<GREETING>> with the literal value.