Is it safe to have 1 letter class names in PHP, e.g A, B, C

前端 未结 7 1945
野的像风
野的像风 2021-02-07 19:13

Is it safe to have single letter class names like A, B, P, etc?

7条回答
  •  梦谈多话
    2021-02-07 19:40

    It's interpreter-safe. But it may not keep you "safe" from fellow programmers who have to support it :)

    Out of curiosity, what would be the compelling reason for that? I assume there must be one.

提交回复
热议问题