News for hackers. Stuff that matters.
Re:Writing GUI Apps Using the Red Programming Language by shalabhc on Sunday December 24, 2017 @05:11PM (#16001570)
Thanks for the clarifications.

> it's not limited only to string parsing, but can be applied to any other series-like value and code (i.e. blocks) itself

Sounds somewhat similar to OMeta (http://www.tinlizzie.org/ometa/) which can pattern match streams of objects.

With contexts it sounds like almost every word can be late bound? Also it seems blocks and contexts are decoupled which means you could evaluate multiple blocks from different parts of your program in the same context, or give each a unique context, etc?

Re:Writing GUI Apps Using the Red Programming Language by 9214 on Monday December 25, 2017 @12:23AM (#16002799)
Every word (the thing what author calls a "variable") has a binding. In short, it's a pointer to the namespace where value associated with that word resides.

Blocks can nest any other value, including words. At any point in runtime you can change this pointers (bound word to some value) for every word in a block or for separate words.

Re:Writing GUI Apps Using the Red Programming Language by greggirwin on Wednesday December 27, 2017 @06:52PM (#16019146)
You can pattern match streams of values, and those values can be any lexical form that Red supports.