RSSAmplifier

Blog

Chicory

Recent content on Chicory

chicory-lang.github.ioRSS feed ↗10 posts

Latest posts

Why I Made a Language to Be JavaScript's Nanny

Typescript is not the destination, it’s a milestone along the way to a safer Javascript with fewer footguns and more guardrails.

Try Chicory

Remove Footguns, Add Guardrails

Chicory is a new programming language that compiles to JavaScript, designed specifically for JS/TS developers to find familiar with the goal of removing common pitfalls (‘footguns’) like null/undefined while adding safety features such as static typing with automatic type-inference.

Beyond TypeScript

Typescript is not the destination, it’s a milestone along the way to a safer Javascript with fewer footguns and more guardrails.

Resources

Link to valuable, relevant resources.

Privacy Policy

Variables

Assignments There are two ways to assign values to variables in Chicory: let varName = 'value' const constName = 'value' Like Javascript, Chicory uses let to declare mutable variables and const to declare immutable constants.

(untitled)

Objectives of Chicory Chicory is a new programming language designed with the aim of providing a safer, more enjoyable, and highly productive development experience, particularly for building modern web applications. It draws inspiration from various successful languages while forging its own path to address common challenges in software development.

Control Flow

If Expressions Conditional execution is handled with if expressions. Unlike Javascript, if is an expression , not a statement. This means that it can be used in places where a value is expected, for example in variable assignments.

Foreign Function Interface (FFI)

Introduction Chicory is designed to be a safe and maintainable language, but it also recognizes the need to interact with the vast ecosystem of existing JavaScript libraries and browser APIs. The Foreign Function Interface (FFI) is the mechanism that allows Chicory code to call JavaScript functions and access JavaScript objects in a type-safe way.