Rather than printing in the MIR lowering passes, emit some kind of message() object that all gets resolved at the end of the program. This may require allowing for a single instruction to be replaced with multiple instructions, a thing we don't currently handle.
Rather than printing in the MIR lowering passes, emit some kind of
message()
object that all gets resolved at the end of the program. This may require allowing for a single instruction to be replaced with multiple instructions, a thing we don't currently handle.