Anton Shepelev
2017-08-21 09:36:18 UTC
Hello, all
Does anybody know why C# requires that the program-
mer specify the exact type of all the numeric liter-
als, e.g.: 5.2f, 4.17m? Are there any drawbacks to
the approach taken by Pascal, where the compiler de-
cuces the type of the literal suitable for the ex-
peression in which it is used?
Does anybody know why C# requires that the program-
mer specify the exact type of all the numeric liter-
als, e.g.: 5.2f, 4.17m? Are there any drawbacks to
the approach taken by Pascal, where the compiler de-
cuces the type of the literal suitable for the ex-
peression in which it is used?
--
() ascii ribbon campaign - against html e-mail
/\ http://preview.tinyurl.com/qcy6mjc [archived]
() ascii ribbon campaign - against html e-mail
/\ http://preview.tinyurl.com/qcy6mjc [archived]