---
title: "ReScript and Coding Agents"
description: "How ReScript supports teams working with coding agents"
canonical: "/docs/manual/agentic-workflows"
section: "Guides"
order: 4
---
# ReScript and Coding Agents
ReScript is a strong fit for teams working with coding agents because it reduces ambiguity in the source language, surfaces errors early through the compiler, and keeps generated output understandable. This guide explains why those properties matter in real development workflows.
## Readable code is easier to steer
Agents do better when the language they are editing is small, regular, and easy to inspect. ReScript keeps the syntax compact and consistent, which makes prompts easier to ground in the actual code and makes generated changes easier for humans to review.
## Compiler feedback tightens the repair loop
When an agent makes an incorrect assumption, fast compiler feedback matters. ReScript turns many mistakes into concrete, local errors instead of vague runtime failures, which gives both the agent and the human reviewer a clearer path to the next fix.
## Reviewable JavaScript keeps handoff practical
ReScript compiles to straightforward JavaScript, so teams can still inspect output, debug behavior, and understand how a change behaves in the wider JavaScript ecosystem. That keeps the handoff between agent-written code and human review practical.
## You can keep your existing stack
Using ReScript does not mean walking away from the JavaScript ecosystem your product already depends on. You can keep using the SDKs, APIs, frameworks, and deployment tooling your team already knows while adding stronger guarantees where correctness and maintainability matter most.
## Where to start
- For setup, see [Installation](./installation.mdx).
- For adding ReScript to an existing codebase, see [Converting from JS](./converting-from-js.mdx).
- For editor and compiler feedback loops, see [Code Analysis](./editor-code-analysis.mdx).
---
title: "API | ReScript"
metaTitle: "API"
description: "The ReScript API documentation"
canonical: "/docs/manual/api"
---
# Introduction
## Stdlib
[Stdlib](/docs/manual/api/stdlib) is ReScript's new builtin standard library.
It will cover just about you need for day-to-day programming in ReScript and covers most of the built in JavaScript API.
## Additional Libraries
ReScript ships with these two additional modules in its standard library:
- [Belt](/docs/manual/api/belt): immutable collections and extra helpers not available in JavaScript / [Stdlib](/docs/manual/api/stdlib).
- [Dom](/docs/manual/api/stdlibdom): Dom related types and modules. Contains our standardized types used by various userland DOM bindings.
---
title: "Array & List"
description: "Arrays and List data structures"
canonical: "/docs/manual/array-and-list"
section: "Language Features"
order: 12
---
# Array and List
## Array
Arrays are the main ordered data structure in ReScript. They can be randomly accessed, dynamically resized, and updated.
{React.string("Tag: " ++ params.tag /* params is fully typed! */)}
{React.string("Item: " ++ params.item)}
| Example | Description |
|---|---|
| ``` let myFun = (x, y) => { let doubleX = x + x let doubleY = y + y doubleX + doubleY } ``` | Function body with implicit return |
| ``` let result = { let x = 23 let y = 34 x + y } ``` | Block expression bound to a variable |