Bind with let
Create named values without declaration ceremony. Sesi infers the type when an annotation is not needed.
let name = "Sesi"
Sesi keeps fundamentals crisp: values, logic, functions, and structured control flow.
let score = 92let passingGrade = 70if score >= passingGrade { show "Status: You passed with distinction!"} else { show "Status: Needs improvement"}
Sesi uses a compact set of readable forms. Learn values, functions, collections, and control flow, then compose them into larger programs.
Practice in the syntax demoletCreate named values without declaration ceremony. Sesi infers the type when an annotation is not needed.
let name = "Sesi"
Functions accept typed parameters, can declare a return type, and keep reusable logic close to its intent.
fn double(n: number) -> number
Conditions use readable expressions and braces. The structure stays visible without punctuation at every line.
if ready { show "go" }
Arrays and objects are ordinary values. Walk a collection with a direct for … in loop.
for item in items { … }
showPlace strings and values next to each other. Output reads naturally without manual concatenation.
show "Hello," name
Bring module capabilities into scope explicitly so system access is visible at the top of the program.
allow "std/db" in with {db_open}
A Sesi file can declare its capabilities, define reusable behavior, and execute top-level statements without a required application wrapper.
let scores = [92, 78, 88]fn average(values) { let total = 0 for value in values { total = total + value } return total / len(values)}show "Class average:" average(scores)
Use a file for a program, evaluate a quick expression, or work interactively in the browser syntax demo.
Execute a complete .sesi program from the command line.
$ sesi app.sesiCheck a small expression without creating a source file.
$ sesi -e "show 'hello'"Edit examples and inspect simulated output directly in the browser.
Open syntax demoInstall Sesi locally or explore how optional reasoning fits into an otherwise standard program.