Multi-character constant warnings

前端 未结 6 1449
别那么骄傲
别那么骄傲 2020-11-22 09:26

Why is this a warning? I think there are many cases when is more clear to use multi-char int constants instead of \"no meaning\" numbers or instead of defining const variabl

6条回答
  •  醉酒成梦
    2020-11-22 09:55

    This warning is useful for programmers that would mistakenly write 'test' where they should have written "test".

    This happen much more often than programmers that do actually want multi-char int constants.

提交回复
热议问题