Get the latest tech news
Bootstrap post-collapse OOP technology (Part 1)
Quoting collapseos.org: Winter is coming and Collapse OS aims to soften the blow. It is a Forth operating system and a collection of tools and documentation with a single purpose: preserve the abilit
It is a Forth operating system and a collection of tools and documentation with a single purpose: preserve the ability to program microcontrollers through civilizational collapse. With our nice syntax to define methods we are ready to start growing our language, let's start by defining a way to bind variables, the syntax is going to be@myVar is 42, which will bind 42 to the name myVar: We evaluate the right hand side to allow for short-circuit semantics if the right hand side is wrapped in a Later, in Macros and optimizations: it's just a phase I show how to write a phase that automatically wraps the right hand side for us to get short-circuit booleans without any special syntax or special core language semantics.
Or read this on Hacker News