all repos — h3rald @ 559b8d6844d71d9b9d53fbb660155da6336e841e

The sources of https://h3rald.com

hex article
h3rald h3rald@h3rald.com
Fri, 20 Dec 2024 19:04:41 +0100
commit

559b8d6844d71d9b9d53fbb660155da6336e841e

parent

e7ef5f73886ce10a081c240bbb6c9079f13a5469

1 files changed, 9 insertions(+), 1 deletions(-)

jump to
M contents/articles/hex.mdcontents/articles/hex.md

@@ -70,6 +70,14 @@ - networking

- xml - json -I hope that _lexical scoping_ in the _nice to have_ made you chuckle. I know it would be bad, but _technically_ you wouldn't really need lexical scoping. +I hope that _lexical scoping_ in the _nice to have_ made you chuckle. I know it would be bad, but _technically_ you wouldn't really need lexical scoping, really, especially in case of a concatenative programming language where you don't necessarily need variables, global symbols would probably be OK. + +I decided to put this into practice when creating hex. And that's why, hex: + +- supports only integers, strings, and lists (quotations). It doesn't have floats or dictionaries, even. +- it comes with 64 native symbol for basic stuff, and lets you define your own (global) symbols, to store data and also define the equivalent of functions. +- _everything_ and I mean, literally everything from flow control to error handling, and I/O is done by applying symbols on the stack. + +