Replies: 1 comment
-
don't need to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The spec currently allows for aliases for the checks. This means that one may have two checks that both refer to the use of
INT
for different purposes. These checks will not help when something using those checks gets mixed up. Some examples of what this reminds me of is this discussion Joel Spolsky had about Apps Hungarian which talks about variables that are prefixed withrw
(for row) andcol
(for column). Both areint
s, but of different kinds of things. In the case of what Microsoft was using at the time, the compiler would not help with catching this, but it would at least look wrong. As this example looking at Ada points out, atypedef
would not help there (C++ programmers would probably use things likeenum
andstruct
).Is this something that would be in scope or would the best practice be to
bless
them so the values can not interact without some sort of casting (e.g., anunbless
,Acme::Damn::damn()
) mechanism? Interestingly enough, that Ada post also gives an example of tainted strings.Beta Was this translation helpful? Give feedback.
All reactions