<分区>
我在阅读我的类(class)“编程语言”时遇到了这个问题,并发现它很有趣。我想要其他人对此的意见:
Some language definitions specify a particular representation for data types in memory, while others specify only the semantic behavior of those types.
For languages in the latter class, some implementations guarantee a particular representation, while others reserve the right to choose different representations in different circumstances. Which approach do you think is better and Why?
我的观点是,后一种方法更好,因为我们可以定义自己的自定义数据类型,并在不同的地方和情况下以不同的方式使用它们。你怎么看?