Osprey Language Specification
Version: 0.2.0-alpha
Date: 2025-07-06
Author: Christian Findlay
Table of Contents #
- Introduction
- Lexical Structure
- Syntax
- Semantics
- Type System
- Function Calls
- String Interpolation
- Pattern Matching
- Block Expressions
- Boolean Operations
- Loop Constructs and Functional Iterators
- Lightweight Fibers and Concurrency
- Built-in Functions
- Error Handling
- HTTP
- WebSocket Functions
- Security and Sandboxing
- Algebraic Effects
About This Specification #
This specification defines the complete syntax and semantics of the Osprey programming language. Each section is available as a separate page for easy navigation and reference.
The Osprey language is designed for elegance, safety, and performance, emphasizing:
- Named arguments for multi-parameter functions to improve readability
- Strong type inference to reduce boilerplate while maintaining safety
- String interpolation for convenient text formatting
- Pattern matching for elegant conditional logic
- Immutable-by-default variables with explicit mutability
- Fast HTTP servers and clients with built-in streaming support
- WebSocket support for real-time two-way communication
Implementation Status #
🚧 NOTE: The Osprey language and compiler are actively under development. This specification represents the design goals and planned features. Please refer to individual sections for current implementation status.