Akuli / jou

Yet another programming language
MIT License
11 stars 4 forks source link

noreturn #316

Closed Akuli closed 1 year ago

Akuli commented 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().