The Compile-Time Feature Update
TeaScript 3.1 mainly brings compile-time featurse
- Keys, Small keywords which provide custom compile-time options
q
key, which aids in quiningp
key, which aids in polyglots
- Definitions. Compile-time code variables
\a=3.14*xs[0];\a
will compile to:3.14*xs[0];3.14*xs[0]
.
- Bug Fixes yeah, and a ton of them. I can declare TS3.1 stable
Examples
Quine:
[q|
Polygot (Python + TS):
"[p|'Hello, World!']";print"Hello, World!"
Definitions:
x\p=*3.14\+yp
Outputs: x*pi+y*pi
##Upcoming features:
?
midway bracket closing- Fixed arity functions! This will be a monumental feature add will probably be in TS4
- sed-style replacements:
x~/a/b/
replacesa
withb
. - Auto-golfing