Skip to content

TeasScript 3.1

Latest
Compare
Choose a tag to compare
@vihanb vihanb released this 28 Jan 06:00
· 6 commits to master since this release

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 quining
    • p 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/replaces a with b.
  • Auto-golfing