Product tip: 0.6.34. Preferred surface: LANGUAGE.md · GUIDE.md.
Makori is its own unique language with its own unique syntax.
Not a Go clone. Not a Rust clone. Not “Go with ownership” or “Rust with simpler keywords.” It may take ideas from other languages; the surface is Mako.
Judging a syntax choice:
- Does it look and feel like Makori? (If it looks like Go or Rust first, reject it as preferred.)
- Does it help people build real work without a lot of typing? (ERGONOMICS.md)
- Is safety visible where it matters — without taxing the common path?
- Does it stay fast — native compilation, no GC overhead? (PERFORMANCE.md, SPEED.md)
- If it touches concurrent/parallel work, is that still first-class, structured, and fast?
If (1), (2), (4), or (5) fails, the form is wrong even if it is familiar.
Short, punchy English. Verbs for action. One clear metaphor per domain. Not a Go dialect. Not a Rust dialect.
| Domain | Our words | Feel |
|---|---|---|
| Speed | native · no GC · -O3 -flto |
The name of the game (SPEED.md) |
| Memory | hold · share · arena |
You own it, share it, or bulk-free it |
| Concurrency | crew · kick · join · channels · select · actor |
First-class — structured, no orphans |
| Parallelism | fan · multi-kick crews |
First-class — use the cores |
| Methods | on Type { … } |
Behavior sits on the type |
| Units | pack · pull · export |
Name a pack, pull it in, export what leaves |
| Errors | Result · Option · ? · match |
Explicit, exhaustive |
| Files | .mko |
Ours |
Dual spellings (func, :=, import, package, …) exist for migration.
They are compat sugar, not the brand. Docs and makori fmt always lead with the flair column.
| Area | Mako form |
|---|---|
| Functions | fn name(x: T) -> R |
| Locals | let / let mut |
| Types | struct / enum / interface |
| Methods | on Point { fn distance(self) -> int { … } } |
| Export | export fn / export struct |
| Units | pack lib · pull "path" · pull "path" as name · always qualify |
| Memory | hold · share · arena |
| Concurrency | crew · kick · join · fan · select |
| Errors | Result[T, E] · Option[T] · ? · match |
| Actors | actor · receive |
| Unsafe | unsafe { … } |
| Files | .mko |
pull "strings"
export struct Point {
x: int
y: int
}
on Point {
fn distance(self) -> int {
return self.x + self.y
}
}
fn divmod(a: int, b: int) -> (int, int) {
return (a / b, a % b)
}
fn main() {
let p = Point { x: 3, y: 4 }
print(p.distance())
let q, r = divmod(17, 5)
print(q)
print(r)
if path == "/health" {
print("ok")
}
hold let msg = "owned"
arena a {
let buf = arena_text(a, msg)
print(buf)
}
crew t {
let job = t.kick(work())
print(job.join())
}
}
Runnable: examples/mako_style.mko · ERGONOMICS.md
(includes maps/slices short path: sets, groups, nested maps, bag values)
| Inspiration | What we take | What we do not copy as identity |
|---|---|---|
| Go | Clear packages, qualified call sites, channels, multi-value returns, fast builds | func / := / package / import as the preferred surface |
| Rust | Ownership discipline, Result/Option, exhaustive match, no GC by default |
Lifetime ceremony, trait maze, impl as primary methods |
| Dual (compat) | Mako flair (preferred) |
|---|---|
func |
fn |
:= / var |
let / let mut |
a int |
a: int |
func (p T) M() |
on T { fn M(self) … } |
type T struct |
struct T |
| Capital-only export | export |
package name |
pack name |
import … |
pull … |
import lib "path" |
pull "path" as lib |
Unit rule: normal pulls always qualify (pkg.fn(...)). Clear namespaces —
our spelling is pack / pull.
Last update: 2026-07-15
Mako identity strength: ~100%
| Track | Weight | Done | % |
|---|---|---|---|
1. Core declaration forms (fn, struct, let) |
20% | 5/5 | 100% |
2. Distinct keywords (hold/share/arena/crew/on/pack/pull) |
25% | 10/10 | 100% |
| 3. Errors & match | 15% | 5/5 | 100% |
| 4. Docs lead with Makori forms (not clones) | 20% | 5/5 | 100% |
| 5. Dual sugar stays dual (not preferred) | 10% | 3/3 | 100% |
6. makori fmt emits Mako-native spellings |
10% | 2/2 | 100% |
| Weighted | 100% | — | ~100% |
-
fnas primary function keyword in docs -
struct/enum/interface -
let/let mut -
x: Typeannotations -
->return types
-
hold/share/arena -
crew/kick/join/fan -
on Type { … }methods -
export -
pack/pull(units — dualpackage/import) -
actor/receive -
match/Result/? -
unsafe -
.mkoextension - Stable “Mako-only” lint pass (
makori lint --identity) that flags dual forms as style, not errors
-
Result[T, E]/Option[T] - unused
Resultis illegal -
?propagation - exhaustive
match - Richer errors seed —
Result[T, Enum]· wrap chain ·error_unwrap/error_root/error_as_tag/error_has_tag·std/errors
- This identity doc + flair table
- LANGUAGE / GUIDE / COMPAT re-centered
- Canonical
examples/mako_style.mko - Dual forms documented as dual
- Units presented as
pack/pull, not a Go dialect surface
- Familiar dual forms still parse (compat)
- COMPAT table lists dual vs preferred
- No plan to delete dual in 0.x
- Prefer
fn/ Mako spellings inmakori fmt - Prefer
pack/pull "path" as name
| Doc | Role |
|---|---|
| SPEED.md | Speed + first-class concurrency/parallelism |
| PAIN_POINTS.md | Why we exist — Go/Rust pain → Mako answers |
| ERGONOMICS.md | Less typing — happy path short, power opt-in |
| LANGUAGE.md | Design overview |
| COMPAT.md | Compatibility + dual forms |
| GUIDE.md | Current syntax guide |
| GO_SYNTAX_CHECKLIST.md | Optional dual/interop checklist (not identity) |
| KEYWORDS.md | Reserved words |
| VISION.md | Product north star |