A lsp first language inspired by rust with linear types

refactor(hir): structural binding kinds #21

Open weuts.bsky.social
targeting main from binding-kind
Open opened by weuts.bsky.social
targeting main from binding-kind

BindingData::name conflated three cases in one string: a real name, a hole (_), and a materialized temporary — the last two both print blank. Replace it with a BindingKind enum (Named/Hole/Temporary) so consumers branch on kind, not on blank text.

The loan checker's is_temporary now asks the binding's own kind instead of scanning Body::temps. A name() accessor keeps every print site's old blank-for-non-named text, so diagnostics render unchanged.

Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01MydcJnxVZuSSpQKUyNSeSe

Commits 1

refactor(hir): structural binding kinds
Sign up or Sign in to add to the discussion.