mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 00:44:27 +00:00
Modules are known by their file: import button from ui/menu.fch and import ui/button are one module, two util.fch are two; min/max/abs/clamp win over C's int-only abs; completion after an import's other name; hover docs; engineers' guides
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016GzNP6r8dg6WDxUVZy8wjL
This commit is contained in:
parent
17863ecf7b
commit
3ba2dcd5d6
16 changed files with 152 additions and 18 deletions
11
tests/new/ui/menu.fch
Normal file
11
tests/new/ui/menu.fch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// for tests/new/modules_by_file.fch: its sibling, imported without the folder
|
||||
import button
|
||||
import util
|
||||
|
||||
fn first() -> button.Button {
|
||||
return button.make("menu")
|
||||
}
|
||||
|
||||
fn whoami() -> str {
|
||||
return util.who()
|
||||
}
|
||||
4
tests/new/ui/util.fch
Normal file
4
tests/new/ui/util.fch
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// for tests/new/modules_by_file.fch: a util.fch in a folder
|
||||
fn who() -> str {
|
||||
return "ui/util"
|
||||
}
|
||||
Loading…
Reference in a new issue