mirror of
https://github.com/hi-language/hi-language.github.io.git
synced 2026-01-14 00:28:05 +00:00
Update index.html
This commit is contained in:
@@ -94,8 +94,8 @@ version: 1.0 // Declaration and initialization
|
||||
version = 1.1 // Assignment
|
||||
\`\`\`
|
||||
|
||||
## The Block: Unifying Objects and Functions
|
||||
The **Block** (\`{}\`) is Hi's foundational structure, unifying data objects and executable functions. It is a sequence of expressions that can be invoked with \`()\`.
|
||||
## The Block: Unifying Objects, Functions, and Classes
|
||||
The **Block** (\`{}\`) is Hi's foundational structure, unifying data objects and executable functions. Each Hi file itself is a block too. It is a sequence of expressions that can be invoked with \`()\`.
|
||||
|
||||
### As a Data Structure (Object)
|
||||
A block can hold \`key: value\` pairs. A \`#\` prefix denotes a private property.
|
||||
|
||||
Reference in New Issue
Block a user