Luukdegram/luf

Allocate error messages so we can format them with arguments

Luukdegram opened this issue · 0 comments

Currently error messages require to be comptime known, cuasing us to lose runtime known information, such as an en expected type. By allocating them we can use std.fmt.allocPrint() to make fancy error messages.

Ensure we do not forget to free all memory created by those messages. Either by deinit() or when write() is called.