Skip to content

wasm: More cleanup#418

Draft
Derppening wants to merge 11 commits intohkust-taco:hkmc2from
Derppening:refactor/cleanup
Draft

wasm: More cleanup#418
Derppening wants to merge 11 commits intohkust-taco:hkmc2from
Derppening:refactor/cleanup

Conversation

@Derppening
Copy link
Contributor

No description provided.

@Derppening Derppening changed the title WIP: wasm: More cleanup Draft: wasm: More cleanup Mar 15, 2026
@Derppening Derppening marked this pull request as draft March 15, 2026 09:22
@Derppening Derppening changed the title Draft: wasm: More cleanup wasm: More cleanup Mar 15, 2026
Comment on lines +180 to +189
given Conversion[Int, NumIdx] with
def apply(index: Int): NumIdx = NumIdx(index)

/** A symbolic identifier. */
case class SymIdx(val id: Str) extends Index:
def toWat: Document = doc"$$$id"

given Conversion[Str, SymIdx] with
def apply(id: Str): SymIdx = SymIdx(id)

Copy link
Contributor

Choose a reason for hiding this comment

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

From the associated change, this is absolutely not worth it. You're shortening a couple of occurrences of SymIdx(x.nme) to x.nme but making everything more brittle and confusing in the process. Implicit conversions are to be avoided.

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.

2 participants