tera icon indicating copy to clipboard operation
tera copied to clipboard

Added the dbg and format filters

Open Kixiron opened this issue 5 years ago • 2 comments

  • Added the dbg filter which prints the passed value to stdout (similar to the dbg!() macro)
  • Added the format filter, which offers various integer formatting routines such as :x and :X

Closes #474

Kixiron avatar May 29 '20 00:05 Kixiron

If you can split dbg from format yes

Keats avatar Mar 12 '21 07:03 Keats

What is your opinion on including the formatting as a parameter to the as_str builtin? Also, it seems like only formatting a single value is supported, hence using a name (e.g. "hex", "Octal") instead of a format string (like ":x", ":O") might be the easier to understand interface.

merkrafter avatar Jan 30 '22 16:01 merkrafter