v0.11.0
Optimising compiler — roadmap §4.3 (Bytes-ids, the id half).
Added
- W040 — stringified-id warning. The checker now flags an entity keyed on a
singleBytes/Addressvalue stringified with.toHexString()/.toHex()
(directly, or via a local), and recommendsid: Id<Bytes>. ABytesid (with
immutability) indexes ~28% faster and stores ~48% less than the equivalent
hex-string id (Edge & Node benchmark). Genuine composite keys
(a.toHexString() + "-" + b…) and literal-string ids are never flagged.
This is a warning rather than an auto-rewrite: converting a String id toBytes
changes the stored id representation (hex-string → raw bytes), so it is a data
change the author opts into — unlike immutability inference, which is
store-identical. Registered inredstart explain W040. Brings the diagnostic
catalogue to 31 codes (26 errors, 5 warnings).