The "general category" [1] and "whitespace" [2] properties are real character properties defined by Unicode. Referring to them is, ideally, how a language that supports Unicode should do things.
[1] https://www.unicode.org/reports/tr44/#GC_Values_Table
[2] https://www.unicode.org/reports/tr44/#White_Space