YASS has supported compilation of a C style syntax since a very early version. It is therefore possible to compile YASS syntax with C like constructs in it (remember that C is one of the languages to inspire ZPE).
Although this documentation article has not yet explained how ZPE functions work, this sample discusses how to write a ZPE function in the C syntax (note there are no semi-colons but there are braces, positioning its syntax close to the C-style syntaxes):
function main() { $x = 10 }
The use of the braces means that end function is
not required.
Almost every, if not every, construct in ZPE, supports the C style notation as well as the standard (sugary syntax). For example, for loops support it:
for ($i = 0; $i < 10; $i++) { $x = 10 }
Further to this, ZPE 1.9.7 (Galashiels, July 2021) added C-style variable declarations:
string $str = "Hello world!" print($str)

There are no comments on this page.
Comments are welcome and encouraged, including disagreement and critique. However, this is not a space for abuse. Disagreement is welcome; personal attacks, harassment, or hate will be removed instantly. This site reflects personal opinions, not universal truths. If you can’t distinguish between the two, this probably isn’t the place for you.
Comments powered by BalfComment