In terms of programming, what do semantics mean?

前端 未结 7 708
被撕碎了的回忆
被撕碎了的回忆 2021-02-01 05:27

This is a sentence from Eric Lippert\'s blog:

Given that unfortunate situation, it makes sense to emphasize the storage mechanism first, and then the

相关标签:
7条回答
  • 2021-02-01 06:00

    The dictionary definition applies.

    Semantics is (are?) all about the meaning of words.

    For example, if you use the .NET type KeyValuePair to represent something OTHER than a key and value, you've got a semantic problem. It may work... it may be the best solution, but it isn't semantically accurate.

    This is exactly what he's talking about in that blog post. We list return types first in C-like languages, but really the return comes last. That's semantically inaccurate.

    0 讨论(0)
提交回复
热议问题