Li Junchen

Results 18 issues of Li Junchen

Part of https://github.com/moonbitlang/core/issues/299 This PR rename current `Char::from_int` to `Char::from_int_safe`, and add a safe version of `Char::from_int(Int) -> Option[Char]`

- Add a new method `Bytes::to_string_unchecked` that behaves the same as the current `Bytes::to_string`. - Change the behavior of `Bytes::to_string` to output bytes literal or bytes array. Related: https://github.com/moonbitlang/core/pull/257

proposal

- [x] trim - [x] to_upper - [x] split - [ ] c style strcmp

good first issue
enhancement

First, let's create a new project and add the `expect-test` dependency to demonstrate: ```bash cargo new demo cd demo cargo add expect-test ``` add the following code to `src/main.rs`: ```rust...

C-feature

The current API design of the Array type is inconsistent in its method naming conventions. It provides both a `length` and a `rev` method. For better consistency and clarity, the...

consistency review

This PR demonstrates the usage of snapshot testing. Currently, three functions are provided: - `@test.T::write(self: T, obj: Show) -> Unit`: writes a showable object to T's internal buffer. - `@test.T::writeln(self:...

https://github.com/moonbitlang/moonbit-docs/issues/314 `moon run` should be more flexible ``` moon run src/main moon run main moon run username/hello/main moon run u/h/m ```

area/ux

For example, only want to import `username/hello` in js backend ```json { "import": { ... }, "import": { "backend": "js", "items": [ "username/hello" ] } } ``` Request by @tonyfettes

enhancement
help wanted
area/project-sturcture

So we do not need to create `moon.pkg.json` by hand

area/ux