Syntax: how we got to Ruby’s look with Go’s discipline
AI-first constraint: Mo has zero corpus, so bodies borrow shapes models know cold; novelty is spent only where semantics need it (intent, never, requires, ensures, process, within:, verified by).
Families considered: Rust-shaped (Gleam), Python-shaped, Elixir-shaped, Go-shaped. Claude first recommended Rust/Gleam-shaped braces and showed a full example. Robert rejected it: Ruby is his favorite language to read and write; the code must be enjoyable. Rewritten Ruby/Crystal/Elixir-shaped.
Syntax choices in the Ruby-shaped draft:
def/end,case/when,do |x|blocks,unless, trailingif. Keywords, not braces.- Contracts (
requires/ensures) are the first lines of a method, like Rails validations at the top of a model. Above the body, collapsible. - Predicate methods end in
?(Ruby), so Rust’s?propagation is replaced by Zig’stryprefix:charge = try db.find_charge(id, within: 200.ms). ok/errorare lowercase constructors:return error AlreadyRefunded(id) if ....- Immutable update via
.with(field: value). - Crystal-style
name : Type; generics with parensResult(Charge, RefundError). struct/enum/type X = ... where ...for refinements.processblock withstate ... end,invariant,messagedeclarations, onedef update.test "..."andtest rejects "..."blocks;verified by ...line at module end. Discipline: Ruby offers five ways to write everything; Mo offers one. Optional parens,do/endvs braces,unlessvsif !: all resolved by the formatter so agents never choose. Open tension noted:log.warn(e)inside a process should require aLogcapability. Logging is the effect everyone wants everywhere.