Skip to content

[ffi] Avoid overloading Value struct #921

@alarso16

Description

@alarso16

Currently, the ffi/memory.go file handles all translation between C and Go memory correctly, but it's extremely unreadable for newer contributors, and is difficult to verify correctness by reading it. An offline discussion resulted in the following ideas:

  • Leave it as is (readable enough)
  • Use Rust-style syntax to wrap with a Go struct (see Use a Value go type to consolidate #920)
  • Create a new struct in Rust for each return type, even if they contain the same underlying data.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions