github polterguy/magic v9.7.0
Extrapolated expressions

latest releases: v17.3.9, v17.3.8, v17.3.7...
3 years ago

Probably the most important feature of this release is the ability to create extrapolated expressions, effectively allowing you to "parametrise expressions", making the art of creating dynamic expressions a lot easier. Below is a simple example of such an expression.

.result
.arg1:foo2
.data
   foo1:john
   foo2:thomas
   foo3:peter
set-value:x:@.result
   get-value:x:@.data/*/{@.arg1}

The above will substitute the second expression {@.arg1} with the value of the [.arg1] node, resulting in retrieving the value of the [foo2] node. Some minor other bugs have been fixed, but the above is the most important feature.

Don't miss a new magic release

NewReleases is sending notifications on new releases.