Factorial Calculator - Io Typing CST Test
Loading…
Factorial Calculator — Io Code
Calculates factorial of a number recursively.
fact := method(n, if(n <= 0, 1, n * fact(n-1)))
write(fact(5) .. "\n")Io Language Guide
Io is a small, prototype-based, object-oriented programming language designed for simplicity, concurrency, and rapid development of distributed applications. It emphasizes minimal syntax, message-passing, and highly dynamic objects.
Primary Use Cases
- ▸Scripting and automation
- ▸Embedded system programming
- ▸Prototyping distributed applications
- ▸Rapid development of domain-specific languages
- ▸Concurrent and asynchronous programming
Notable Features
- ▸Prototype-based object system (no classes)
- ▸Minimal and consistent syntax
- ▸Message-passing as primary mechanism
- ▸Concurrency via coroutines
- ▸Embeddable and portable interpreter
Origin & Creator
Developed in 2002 by Steve Dekorte.
Industrial Note
Io is valued in niche domains where lightweight, dynamic, and concurrent scripting is required, particularly in experimental software, rapid prototyping, and small-scale distributed systems.