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:
1 parent
2f44f09b6a
commit
7cf9727bcd
94 files changed
+858
-858
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// A module: everything marked `pub` can be used by the file that imports it.
|
||||
import math
|
||||
|
||||
pub const UNIT = 1.0
|
||||
|
||||
pub struct Point {
|
||||
pub x, y: float
|
||||
pub func dist(other: Point): float {
|
||||
return math.sqrt((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y))
|
||||
}
|
||||
}
|
||||
|
||||
pub func origin(): Point { return Point{0.0, 0.0} }
|
||||
Reference in new issue
Block a user