Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: todo syntax #316

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions moonbit-docs/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2171,6 +2171,18 @@ Pragmas are annotations inside doc comments. They all take the form `/// @word .
}
```

## Special Syntax

### TODO syntax

The `todo` syntax (`...`) is a special construct used to mark sections of code that are not yet implemented or are placeholders for future functionality. For example:

```moonbit
fn todo_in_func() -> Int {
...
}
```

## MoonBit's build system

The introduction to the build system is available at [MoonBit's Build System Tutorial](https://moonbitlang.github.io/moon/).
Original file line number Diff line number Diff line change
Expand Up @@ -2152,6 +2152,18 @@ fn reverse[T](xs : Array[T]) -> Array[T] {
}
```

## 特殊语法

### TODO 语法

MoonBit 提供了 `TODO` 语法(`...`),用于标记未完成的代码块。例如:

```moonbit
fn todo_in_func() -> Int {
...
}
```

## MoonBit 的构建系统

构建系统的介绍参见 [MoonBit 的构建系统教程](https://moonbitlang.github.io/moon/zh/)。