Jamie Balfour

Welcome to my personal website.

Find out more about me, my personal projects, reviews, courses and much more here.

ZPE 1.14.2 - three new big features

ZPE 1.14.2 brings three major features.

Universal template parsing

Template parsing was introduced some time ago, but was released only in January 2026 with ZPE version 1.14.1. In the latest release, version 1.14.2, template parsing is available anywhere, including in parameters and return values.

Scope blocks

Many languages have scope blocks, and now YASS does too. They are nice and easy to use as well. Simply using the double brace syntax ({{ }} or the block syntax (block . . . end block), you can create an isolated scope block:

YASS
// Everything here runs inside the implicit GLOBAL function

$total = 100
print("Start total: " & $total)

block

  // This variable exists ONLY inside the block
  $total = 25
  print("Inside block: " & $total)

  // Blocks can still see outer variables
  $discount = 10
  $total = $total - $discount
  print("After discount: " & $total)

end block

// Block variables are discarded
print("End total: " & $total)

Variable scoping

Additionally, variables declared as private in a function are scoped to the containing function and no longer modify parent or global variables, allowing safer encapsulation while preserving YASS’s simple scoping model.

Comments

There are no comments on this page.

New comment

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. The system temporarily stores IP addresses and browser user agents for the purposes of spam prevention, moderation, and safeguarding. This data is automatically removed after fourteen days.

Comments powered by BalfComment

Powered by DASH 2.0