dominicm00 / ham

A meaty Jam build tool replacement

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use C++20 formatters

dominicm00 opened this issue · comments

C++20 formatters are a nice alternative to streams, especially as we begin to use more complex terminal output. However, they currently do not have good compiler support so we cannot use it.

Once formatters are more widespread, consider switching implementations of operator<< and .String() to formatter specializations.

I suspect that you probably want to reduce the number of external dependencies, but fmt is a great library.

I suspect that you probably want to reduce the number of external dependencies, but fmt is a great library.

Yeah, fmt is compatible with C++20 format (I believe it inspired it?), so it will be fairly trivial to port to C++20 format. Right now though Ham's output is very minimal since I'm focusing on the interpreter functionality, but once I can focus on prettier/more complete output I'll likely use this until C++20 has better support.

Ham v2 has been moved; closing issues not relevant for v1.