Turtle

About Turtle

Turtle is a programming language built to be expressive, abstract, simple, robust, and easy to type. It is a language built for expression: a program should read like plain sentences, and the same idea can be written in more than one way.

Turtle was designed around five ideas, and the book explains each one with examples.

Five ideas

Expressive. Turtle was designed so that a person can express an idea in more than one way. Some ways are short and direct, for the reader who knows the language well. Others are longer and closer to ordinary sentences, for the reader who is learning.

Abstraction. Abstraction means hiding complex code behind a simpler name. Turtle supports this with theories, which add a new phrase to the language; scrolls, which carry a value through a series of steps; and sentence-like structures, in which values sit inside a phrase.

Simplicity. Turtle is simple to understand, simple to read, and simple to use. It has one consistent set of rules, and the same rule applies wherever it is needed.

Robust. Turtle is robust enough to depend on for real tasks, and it is built to stay stable. When a program fails, Turtle reports the problem in plain words and, where it can, says what to do about it.

Easy typing. Turtle uses the brackets [ ] for calls and blocks, and it avoids keys that need the Shift key to be held down.

Visual Studio Code

The Turtle extension is on the Visual Studio Code Marketplace. Search for “Turtle Programming Language” in the Extensions view, or install it from that page.

Resources

What comes with it

Turtle comes as one program, turtle, which runs .turtle files. It also includes a prompt for trying code, a formatter, a test runner, a debugger, editor support, and a standard library for data, text, files, the web, databases and time. The current release is version 1.0.0.

Author and copyright

Turtle was created by Nigele McCoy, who owns its design, its language and its original work. The copyright runs from 2017 to 2026.

Turtle Programming Language, the book, is copyrighted. Copyright 2017-2026 Nigele McCoy. All rights reserved.

License

The code of Turtle is licensed under the Apache License, Version 2.0. The Turtle name and logo are not licensed. The full license and the NOTICE file are in the source repository.

Contact

Email nigelem@turtlelang.dev.