GPTScript / AiScript

A Minimal, Full-Stack, Tool-Assisted Language. Native to Browsers and Bun. Strictly & Strongly-Typed.
https://github.com/GPTScript/AiScript
Mozilla Public License 2.0
9 stars 1 forks source link

Identify functions - self, always false, always empty, etc #26

Open coolaj86 opened 2 years ago

coolaj86 commented 2 years ago

There are other functions that make sense to include, but that I don't think I've actually found use for:

Function._noop = function () {};
Boolean._false = function () { return false; };
Boolean._true = function () { return true; };
Object._self = function (val) { return val; };