Skip to content

Add Display impl for Value and ValueType#9

Merged
colinrozzi merged 1 commit intomainfrom
value-display
Apr 30, 2026
Merged

Add Display impl for Value and ValueType#9
colinrozzi merged 1 commit intomainfrom
value-display

Conversation

@colinrozzi
Copy link
Copy Markdown
Owner

Summary

Add human-readable Display impls for Value and ValueType.

Value examples:

  • 42, "hello", true — primitives
  • (42, "hello") — tuples
  • [1, 2, 3] — lists (truncated at 10 items)
  • some(42) / none — options
  • ok(42) / err("bad") — results
  • actor-state{greeting: "Hello", count: 0} — records
  • color::rgb(255, 0, 0) — variants

ValueType examples:

  • string, u32, bool — primitives
  • list<u8>, option<string> — generic types
  • result<actor-state, string> — results
  • tuple<s32, s32> — tuples

This enables better error messages in theater (currently dumps raw CGRF bytes).

Test plan

  • All workspace tests pass
  • Derive tests pass
  • Clippy clean

🤖 Generated with Claude Code

@colinrozzi colinrozzi enabled auto-merge April 30, 2026 03:28
@colinrozzi colinrozzi merged commit 8a5383c into main Apr 30, 2026
2 checks passed
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.

1 participant