用owl可以指定这些属性的类型,比如主机名是字符串类型,而操作系统则有可能是一个特定选项已经指定的枚举类型。
OWL lets you specify the type of these properties, so hostname would be string, whilst operating system might be an enumeration with specific options specified.
用解析器对基本枚举列表进行验证。
Validation of the base enumeration list is done by the parser.
用解析器验证枚举列表。
But when you start writing programs, especially when we get to web-based stuff where you want -- to check the user's input -- is it valid, is it an email address, -- and all these different scenarios -- it's actually often useful to be able to just enumerate them or rattle them off using this switching construct instead.
但是当你看是写程序时,特别是当我们,使用基于网络的东西,你想要,检查用户的输入-,它是合法的吗?它是不是一个电子邮箱地址?,所有的这些场景-,实际上它常常是有用的,当你用枚举结构列举它们,或者用它来快速地来说出它们。
This thing's nice because rather than do "if" and "and and" or "or or" and all of this, you can instead enumerate things a little more cleanly, albeit apparently at the expense of more white space.
这个东西是不错的,因为它不用“if“和“and,and“,或者“or,or“所有的这些,你可以用枚举来更清楚地表达它,虽然表面上它用了更多的空格。
应用推荐