Skip to content

Primi 0.2.3

Compare
Choose a tag to compare
@smuuf smuuf released this 22 Oct 07:11
· 334 commits to master since this release
  • BC break: The foreach..as construct/syntax was dropped in favor of more readable for..in construct/syntax..
  • foreach (A as B) { ... } becomes for (B in A) { ... }
  • New statements: break and continue control statements that can be used to fine-tune execution flow when inside for or while loops.
    • Their usage in global scope causes an error.
  • BC break: Removed the echo statement, as it is undesirable by default (and by language's philosophy) for end-users to be able to perform any kind of direct output via Primi script.
    • One can still create an extension that provides such functionality via a new function.