This is down to changes that were made for new versions of ZPE.
YASS features a ton of things that make it easier than ever to learn to program. One of the most obvious features is the option to add syntactic sugar to code.
Syntactic sugar is the principle of putting in syntax (or words) to help make code more readable. YASS focuses on this with a ton of syntaxes but also offers a less readable, faster-to-write version of the same syntax.
In fact, the C syntax featured in YASS allows for this - some people may find this syntax easier to understand than the YASS language base and therefore the option is there.
The When-Is statement (case statement) featured in YASS is a perfect example of
a construct that offers syntactic sugar as an option with
when ($x) is 0 do print("Zero") is 1 print("One") is 2 do print("Two") end when
Notice that the inclusion and removal of the keyword
within the 2nd and 4th lines.
This is optional to allow the use of syntactic sugar when desired and omitted when not.
In theory, syntactic sugar has very little performance impact but it has not been overly tested. The reason that it has little impact in theory only is because of the way the compiler is built. The only area of the ZPE engine in which there will be a small, neglible performance hit is with the parser which will need to lex one extra symbol.
S1s and S2s really enjoyed the lesson on cybercrime using the lesson on How to Rob A Bank on… https://t.co/MxjDYE2JFu
7 months ago
S2s doing really well in hardware test! Also really enjoying doing tests electronically rather than on paper.… https://t.co/ritdfcW6Mw
7 months ago
S1 and S2 pupils listing input and output devices and giving answers such as keyboard and mouse but there were also… https://t.co/dGxDkYqFxo
8 months ago