Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@ct-austin ct-austin released this 13 Jan 16:05
· 9 commits to master since this release

Adds support for a new syntax:

iprintln!("foo: " foo ", bar: " bar);
iprintln!("myvec: " myvec;?);
iprintln!(just_the_value);

Unlike the older string literal-based syntax, this new syntax allows for better error reporting from the compiler and better syntax highlighting from editors not explicitly made aware of this macro (which, to my knowledge at the time of writing, is all of them).

Unfortunately, due to the nature of macros, editors may not be able to refactor the contents of ifmt macro calls—e.g. CLion does not appear to rename any identifiers referenced within invocations of user-defined macros when doing identifier find/replace—and will not provide any error checking without explicit support.

The older iformat!("inside {mystring}"); syntax will still be supported. It may be removed in v1.0.