# MoonBit反馈

**URL:** https://taolun.moonbitlang.com/c/17-category/17.md

[最新](https://taolun.moonbitlang.com/latest.md) · [类别](https://taolun.moonbitlang.com/categories.md) · [标签](https://taolun.moonbitlang.com/tags.md)

---

## [关于“MoonBit反馈”类别](https://taolun.moonbitlang.com/t/topic/782)

<div class="topic-metadata">

**Author:** [@Kuki](https://taolun.moonbitlang.com/u/Kuki)\
**回复:** 0

</div>

---

## [mooncakes的包删除](https://taolun.moonbitlang.com/t/topic/1435)

<div class="topic-metadata">

**Author:** [@Afate2023](https://taolun.moonbitlang.com/u/Afate2023)\
**回复:** 1\
**最近更新：:** [2026 年7 月 20 日 08:03 UTC](https://taolun.moonbitlang.com/t/topic/1435 "2026-07-20T08:03:14Z")

</div>

mooncakes.io发布的包支持删除吗，我看文档只有moon publish。

---

## [初识者的若干反馈](https://taolun.moonbitlang.com/t/topic/1397)

<div class="topic-metadata">

**Author:** [@YDX](https://taolun.moonbitlang.com/u/YDX)\
**回复:** 4\
**最近更新：:** [2026 年6 月 13 日 11:49 UTC](https://taolun.moonbitlang.com/t/topic/1397 "2026-06-13T11:49:49Z")

</div>

大家好，拜个晚晚年了！ 我为了审阅\[某个PR\](https://github.com/typst-community/wasm-minimal-protocol/pull/65)，初步尝试了下MoonBit，不过遇到了很多困难。大部分困难…

---

## [现有的 async 使用太痛苦了](https://taolun.moonbitlang.com/t/topic/1427)

<div class="topic-metadata">

**Author:** [@1216892614](https://taolun.moonbitlang.com/u/1216892614)\
**回复:** 1\
**最近更新：:** [2026 年6 月 8 日 02:38 UTC](https://taolun.moonbitlang.com/t/topic/1427 "2026-06-08T02:38:24Z")

</div>

除了文档我几乎没有办法判断一个外部库我是否需要使用 with\_task\_group, 如果我不熟悉一个库那我就没法上手使用异步实践, 只能任由消息串连在一起. 而且这样使用异步的体验代码量比 all/any 更多, 阅读更加困难 (这段代码…

---

## [语言导览中文语法错误？](https://taolun.moonbitlang.com/t/topic/1415)

<div class="topic-metadata">

**Author:** [@yao](https://taolun.moonbitlang.com/u/yao)\
**回复:** 5\
**最近更新：:** [2026 年5 月 7 日 03:07 UTC](https://taolun.moonbitlang.com/t/topic/1415 "2026-05-07T03:07:36Z")

</div>

……我们利用该特性在模式匹配过程中可以保留原始元组结构 → 这样好像是正确的 In this example, we use this feature to preserve the original tuples while p…

---

## [\`for\`循环条件子句中使用\`is\`表达式声明的变量无法在更新子句中引用](https://taolun.moonbitlang.com/t/topic/1401)

<div class="topic-metadata">

**Author:** [@sennenki](https://taolun.moonbitlang.com/u/sennenki)\
**回复:** 1\
**最近更新：:** [2026 年3 月 10 日 11:13 UTC](https://taolun.moonbitlang.com/t/topic/1401 "2026-03-10T11:13:13Z")

</div>

如图, 下面的代码无法通过编译, 提示标识符tl未绑定:

---

## [如果没有 await 关键字，AI 如何一眼看出代码是异步的？](https://taolun.moonbitlang.com/t/topic/1346)

<div class="topic-metadata">

**Author:** [@anuoua](https://taolun.moonbitlang.com/u/anuoua)\
**回复:** 0\
**最近更新：:** [2025 年10 月 23 日 06:19 UTC](https://taolun.moonbitlang.com/t/topic/1346 "2025-10-23T06:19:36Z")

</div>

如题，moonbit 比较注重 AI 编程，这样设计对AI非常不友好，我建议官方还是加上吧。

---

## [关于for else的问题](https://taolun.moonbitlang.com/t/topic/1296)

<div class="topic-metadata">

**Author:** [@FlyCloudC](https://taolun.moonbitlang.com/u/FlyCloudC)\
**回复:** 0\
**最近更新：:** [2025 年8 月 19 日 13:02 UTC](https://taolun.moonbitlang.com/t/topic/1296 "2025-08-19T13:02:41Z")

</div>

参见这个视频的第一部分 \[Python\] 最糟糕的三个特性\_哔哩哔哩\_bilibili ，还有评论区的一些相关讨论。moonbit在这里的问题是一样的，简单地说就是for else比较反直觉，这里else的意义不明确。 也许可以加入nob…

---

## [标准库String类型切片使用charcodes()还是view()？](https://taolun.moonbitlang.com/t/topic/1256)

<div class="topic-metadata">

**Author:** [@vspefs](https://taolun.moonbitlang.com/u/vspefs)\
**回复:** 1\
**最近更新：:** [2025 年7 月 2 日 02:11 UTC](https://taolun.moonbitlang.com/t/topic/1256 "2025-07-02T02:11:45Z")

</div>

如题。我本机的v0.6.19版本moonbit所带标准库的String类型同时拥有String::view()和String::charcodes()，并且后者的实现是直接转发到前者的。然而moonbit对str\[i:j\]的迁移建议是使用s…

---

## [对于在modA中的对基本类型的扩展，如何在modB中自动引用？](https://taolun.moonbitlang.com/t/topic/1237)

<div class="topic-metadata">

**Author:** [@bopomf](https://taolun.moonbitlang.com/u/bopomf)\
**回复:** 1\
**最近更新：:** [2025 年6 月 11 日 02:05 UTC](https://taolun.moonbitlang.com/t/topic/1237 "2025-06-11T02:05:09Z")

</div>

在modA中实现了对String的扩展比如String::to\_int(Self)-\>Int，在另一个modB中如何引用才能让modB中的String变量自动挂上我在modA中实现的对String的扩展？“123”.to\_int() 如何才…

---

## [语言内建的权限管理?](https://taolun.moonbitlang.com/t/topic/1063)

<div class="topic-metadata">

**Author:** [@1216892614](https://taolun.moonbitlang.com/u/1216892614)\
**回复:** 2\
**最近更新：:** [2025 年1 月 19 日 22:14 UTC](https://taolun.moonbitlang.com/t/topic/1063 "2025-01-19T22:14:23Z")

</div>

类似 deno 的权限管理设计, 语言内提供独立沙箱功能? 从零实现的 moonbit 感觉明显可以做的更加灵活, 而且 wasm 感觉也很适合这个设计. 参考的权限: 文件系统访问读写 (按路径授权? 网络访问读写 (类似浏览器的 …

---

## [trait alias遇到的限制](https://taolun.moonbitlang.com/t/topic/1064)

<div class="topic-metadata">

**Author:** [@yuyi919](https://taolun.moonbitlang.com/u/yuyi919)\
**回复:** 1\
**最近更新：:** [2024 年12 月 5 日 01:41 UTC](https://taolun.moonbitlang.com/t/topic/1064 "2024-12-05T01:41:43Z")

</div>

自定义包遇到之后，尝试内建类型也有限制 pub(open) typealias MyEq = Eq // Trait object for Eq is not allowed: \`Self\` occur multiple times in…

---

## [\[未解决\] 更新后Vscode插件无法识别Core Library标识符和函数](https://taolun.moonbitlang.com/t/topic/994)

<div class="topic-metadata">

**Author:** [@zmr233](https://taolun.moonbitlang.com/u/zmr233)\
**回复:** 4\
**最近更新：:** [2024 年10 月 26 日 14:36 UTC](https://taolun.moonbitlang.com/t/topic/994 "2024-10-26T14:36:13Z")

</div>

于10月18日傍晚更新了Moonbit到moon 0.1.20241017 (e833bec 2024-10-17)，至此之后MoonBit的Vscode插件就再也无法正常工作了，具体表现为无法识别core库的函数和标识符： 但是m…

---

## [VSCode Debug错误](https://taolun.moonbitlang.com/t/topic/928)

<div class="topic-metadata">

**Author:** [@muzzik](https://taolun.moonbitlang.com/u/muzzik)\
**回复:** 3\
**最近更新：:** [2024 年10 月 10 日 10:08 UTC](https://taolun.moonbitlang.com/t/topic/928 "2024-10-10T10:08:52Z")

</div>

在 window 环境下，多了一个 /

---

## [match 能支持匹配字符串的一部分吗？](https://taolun.moonbitlang.com/t/topic/963)

<div class="topic-metadata">

**Author:** [@eczn](https://taolun.moonbitlang.com/u/eczn)\
**回复:** 0\
**最近更新：:** [2024 年9 月 26 日 07:50 UTC](https://taolun.moonbitlang.com/t/topic/963 "2024-09-26T07:50:32Z")

</div>

fn main { let str = "trest\_1231"; match str { "$(left)\_$(right)" =\> { println(left); println(right);…

---

## [语言文档是完整的么？](https://taolun.moonbitlang.com/t/topic/951)

<div class="topic-metadata">

**Author:** [@qehs](https://taolun.moonbitlang.com/u/qehs)\
**回复:** 4\
**最近更新：:** [2024 年9 月 22 日 16:38 UTC](https://taolun.moonbitlang.com/t/topic/951 "2024-09-22T16:38:01Z")

</div>

刚来没几天，注意到，比如列表，文档里没提，但是在视频课程里提到了，所以文档现在是什么状态，涵盖了所有的语法点么？是在及时更新么？

---

## [Compilation failed](https://taolun.moonbitlang.com/t/topic/759)

<div class="topic-metadata">

**Author:** [@shiren1118](https://taolun.moonbitlang.com/u/shiren1118)\
**回复:** 3\
**最近更新：:** [2024 年5 月 31 日 01:59 UTC](https://taolun.moonbitlang.com/t/topic/759 "2024-05-31T01:59:49Z")

</div>
