In some programming languages, such as Pascal, there is a case statement written like case something of
, like case name of
or case place of
, followed by a set of alternatives.
This expression, case noun of, is unfamiliar to me, I've never heard or read it before, even after looking for it in dictionaries.
Is it correct in English? If so, can you provide an example, like a quote of a book that uses it, or a dictionary that lists it. If not, is it an abbreviation of something else, like in case of something is, or just something that the programming language designers invented with no natural way of reading it?
EDIT: I understand what the case statement does in programming languages. I just don't understand where that syntax comes from.