Skip to content

handle warnings#4

Merged
NoEgAm merged 2 commits into
mainfrom
syntax
Jul 29, 2025
Merged

handle warnings#4
NoEgAm merged 2 commits into
mainfrom
syntax

Conversation

@tiye
Copy link
Copy Markdown
Member

@tiye tiye commented Jul 9, 2025

No description provided.

@tiye tiye requested review from a team and Copilot July 9, 2025 16:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request addresses warnings in the codebase by updating syntax and dependencies. The changes modernize the MoonBit syntax from older function call conventions to newer raise/throw semantics and update package versions.

  • Updates function syntax from ! notation to raise keyword for error handling
  • Modernizes string interpolation and function call syntax
  • Updates dependencies to newer versions

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/main/store.mbt Removes unused Show implementation for Store
src/main/main.mbt Updates function syntax, removes unused imports, modernizes string interpolation
src/main/counter.mbt Updates error handling syntax and event handling patterns
package.json Updates vite dependency to version 7.0.3
moon.mod.json Updates respo dependency to version 0.0.35

Comment thread src/main/main.mbt
// @dom_ffi.log("store: " + app.store.val.to_json().stringify(indent=2))
app.render_loop(fn() { view!(app.store.val) }, fn(op) {
@dom_ffi.log("Action: " + op.to_string())
app.render_loop(fn() { view(app.store.val) }, fn(op) {
Copy link

Copilot AI Jul 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title contains a spelling error: 'hanle' should be 'handle'.

Copilot uses AI. Check for mistakes.
@tiye tiye changed the title hanle warnings handle warnings Jul 13, 2025
@NoEgAm NoEgAm merged commit 406d215 into main Jul 29, 2025
1 check passed
@NoEgAm NoEgAm deleted the syntax branch July 29, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants