为什么在KRL中需要关键字“ then”

问题描述

| 当我在KRL规则中编写条件操作块时,我总是会忘记\'then \'关键字。这是正确的语法:
rule with_conditions {
  select when pageview \".*\"
  pre {
    cheese = \"Camembert\";
  }
  if (cheese like re/bert/) then {
    notify(\"Odd Cheese\",\"#{cheese} is unusual.\");
  }
  fired {
    raise explicit event \"odd_cheese\";
  }
}
那为什么\'?没有它就不会一样清楚吗?     

解决方法

        可能是因为该语言的作者感到加1更为自然。