It is mainly for compatibility. It is difficult to create a constant from an expression. Another solution would be to make the case a compile-time constant.