Rename the language from Dino to Rex

Files use .rex, the command is rex, and the crate, runtime prefixes,
docs, editor files and examples all use the new name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Your NameandClaude Opus 5.5 committed 2026-11-08 13:51:23 +01:00
1 parent 2f44f09b6a
commit 7cf9727bcd
94 files changed
+858 -858

No files matched your search

+6 -6
View File
@@ -5,7 +5,7 @@
Put the type names in `[ ]` after the function name. The compiler works the real types out
from the arguments.
```dino
```rex
func first[T](xs: []T): T {
return xs[0]
}
@@ -38,7 +38,7 @@ Generics cost nothing at run time: every set of types gets its own compiled copy
A generic function can take functions too, which makes `map` and `filter` easy to write:
```dino
```rex
func map[T, U](xs: []T, f: func(T): U): []U {
var out: []U
for x in xs { out.push(f(x)) }
@@ -59,7 +59,7 @@ func main() {
Structs and enums can take types too. When you **use** one, write the types out.
```dino
```rex
struct Stack[T] {
items: []T
@@ -93,7 +93,7 @@ Maybe[string].Some(hi)
An interface lists methods. A type follows it just by having those methods, with no
`implements` keyword.
```dino
```rex
interface Shape {
area(): float
name(): string
@@ -114,7 +114,7 @@ struct Circle {
### As a rule for generics
```dino
```rex
interface Shape {
area(): float
}
@@ -141,7 +141,7 @@ area is 9.0
An interface is also a type of its own. A variable of that type can hold any value that has
the methods, and the right method runs at run time. This is how you build a mixed list.
```dino
```rex
interface Shape {
area(): float
name(): string