Replies: 2 comments 1 reply
-
Should this be a discussion or is this a code task? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Maybe both. I mean discussion (I am open to feedback), later maybe task. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea:
I think it would be useful to provide uniform way to handle unimplemented code. Especially with efforts porting for different platforms/architectures (64bit?)/compilers (where alternative code needs to be written).
Scenario: when porting, there can be some piece of code or function, maybe not so critical (but maybe hard to port), and one could be tempted to just do:
("for time being, to make things compile, to be implemented later")
However such code can produce problems later, if forgotten. Causing hard to debug problems and missbehaviors.
I was thinking maybe there could be some uniform way, how to handle such cases. Maybe macro such as:
This macro should produce (fatal) runtime error when reached. Possibly (?) also generating warning on compile time. It should be easy to use (so no reason to avoid it, maybe even automatically provided by headers like
BaseType.h
oralways.h
). It should also be easily searchable.Porting (alternative implementations) could then start with parts of code unimplemented (i.e. just to make things compile) and then gradually implementing missing pieces, without danger of silently broken code.
Beta Was this translation helpful? Give feedback.
All reactions