Discussion Thread: DIP 1036--Formatted String Tuple Literals--Community Review Round 1
12345swordy
alexanderheistermann at gmail.com
Fri Sep 11 13:19:37 UTC 2020
On Thursday, 10 September 2020 at 20:50:24 UTC, Paul Backus wrote:
> This won't stop people from calling functions with the wrong
> arguments, but I don't think it needs to--that should be each
> function's responsibility, not the language's (see: Scott
> Meyers' Year/Month/Day example).
That issue that I have with your stance, is that we are dealing
with c/c++ bindings here. How is c/c++ responsible in this case?
You are asking the binder maintainer to create a wrapper to
prevent accident function call.
The previous DIP is bad, because it is easy to accidentally call
the wrong function. Which it is not ideal. You are asking the
library maintainers to modify the library to prevent the users
from shooting themselves in the foot by accident which is not
ideal.
Alex
More information about the Digitalmars-d
mailing list