mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 00:44:27 +00:00
- const NAME = value (numbers, text, other constants; typed: const f32 G = 9.8), also module.NAME
- x := if c { a } else { b }
- """ ... """: the closing quotes' indentation goes from every line
- min, max, abs, clamp for any numbers, unless your own function has the name
- import ui/button (a module in a folder), import path as p
- fs: read_bytes, write_bytes, exists, is_dir, mkdir (with parents), list, remove_dir, data_dir(app)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016GzNP6r8dg6WDxUVZy8wjL
7 lines
199 B
Text
7 lines
199 B
Text
// a module in a folder, for tests/new/lang_additions.fch (import ui/button)
|
|
const SIZE = 3
|
|
struct Button {
|
|
str label
|
|
int w = SIZE * 10
|
|
}
|
|
fn make(str l) -> Button { return Button(label: l) }
|