Closed Akuli closed 1 year ago
self-hosted compiler has code like this in many places:
https://github.com/Akuli/jou/blob/6f3ff0ea704344d6e44d7a9af9de0bc2adc17fc7/self_hosted/tokenizer.jou#L60-L64
It would be nice if I could mark the fail() function as noreturn, similar to C, so that the compiler knows I don't have to e.g. specify values of variables if I call fail().
fail()
noreturn
self-hosted compiler has code like this in many places:
https://github.com/Akuli/jou/blob/6f3ff0ea704344d6e44d7a9af9de0bc2adc17fc7/self_hosted/tokenizer.jou#L60-L64
It would be nice if I could mark the
fail()
function asnoreturn
, similar to C, so that the compiler knows I don't have to e.g. specify values of variables if I callfail()
.