In Nim, the noReturn pragma marks a proc that never returns.
How is that different than a function that returns void?
In Nim, the noReturn pragma marks a proc that never returns.
How is that different than a function that returns void?
Copyright © 2021 Jogjafile Inc.
Returning
voidmeans the function returns nothing:The empty brackets as well as the
: voidare optional:Annotating a function with
noReturnmeans the function will not return at all: