dinfuehr / dora

Dora VM
MIT License
490 stars 31 forks source link

Stringification and the design of debug string facilities #268

Closed soc closed 2 years ago

soc commented 3 years ago

Brought up in https://github.com/dinfuehr/dora/pull/254#issuecomment-907566068 by @dinfuehr, my plan as promised in https://github.com/dinfuehr/dora/pull/254#issuecomment-907648809.

Plan

Stringable#toString() focuses on general-purpose output:

runtime.debugString(value) provides debugging-oriented output:

soc commented 3 years ago

Motivation

The proposed design is based on lessons learned and problems experienced with various languages, including Java, Haskell, Rust and Scala:

soc commented 3 years ago

Status