I built a programming language where you can't lose a cent: a 5-minute tour of Quill
说明与用途
Quill 是一种编程语言,确保精确的货币计算和显式错误处理,防止失去一分钱和潜在错误。
问题
Developers need a language that enforces clear intent, explicit failures, and correctness, especially for financial calculations and error handling.
结果
Quill provides a concise, type‑safe syntax for business logic, ensuring monetary calculations never lose a cent and that all failure paths are explicitly handled.
工作流
- Install Quill via curl installer
- Create a new app with
quill new shop app - Run the server with
quill run server.quill - Write data queries using natural‑language‑style syntax
- Perform money splits with
say split 100 USD into 3 - Use explicit currency conversion with
convert 20 EUR to USD at 0.92 - Define functions with typed failures, e.g.,
fn charge(amount: USD) -> text - Handle failures with
on Declined -> "declined" - Run tests with
quill test
证据
Quill is an open-source language for backends, business software and automation.
say split 100 USD into 3 -- 33.34 USD, 33.33 USD, 33.33 USD
100 USD + 20 EUR doesn't run. Quill says it won't mix currencies, and suggests convert 20 EUR to USD at 0.92
- 记录日期: 2026-11-03T11:14:13.402Z