You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently types like string_array_t could easily, imo, collide with any arbitrary other system. I believe it would be better to prefix these types with utilities_.
I can foresee that this will be annoying to do, but in that case I'd argue we should try for a shorter and simpler package name/prefix name instead of avoiding namespacing in some places.
I have some other thoughts on this string array interface as well though. I guess some of them are dependent on #6. For example, what happens if calloc returns NULL here:
I understand and agree with the "need"for namespacing. But why use utilities_ instead of c_utilities_? For all other code the namespacing follows the package name (even in ROS 1).
I was just following the style of the rest of the package, which uses just utilities as the prefix. I agree and I've also pointed out that c_utilities is not very unique, nor is it a convenient suffix, but I didn't have an alternative name in mind.
Activity
Karsten1987 commentedon Apr 12, 2017
tadaaa :)
ros2/rmw#100
Edit:
I actually forgot to open/link this PR. So thanks for the catch!
#14
wjwwood commentedon Apr 12, 2017
Awesome thanks!
I have some other thoughts on this string array interface as well though. I guess some of them are dependent on #6. For example, what happens if
callocreturnsNULLhere:https://github.com/ros2/c_utilities/blob/31f11ddf987b5f585bcd77494948cd1c8f664fba/src/string_array.c#L37
Karsten1987 commentedon Apr 12, 2017
yup, I am on it. This will all go somehow together with #6 and ros2/rmw#94
dirk-thomas commentedon Apr 12, 2017
I understand and agree with the "need"for namespacing. But why use
utilities_instead ofc_utilities_? For all other code the namespacing follows the package name (even in ROS 1).wjwwood commentedon Apr 12, 2017
I was just following the style of the rest of the package, which uses just utilities as the prefix. I agree and I've also pointed out that c_utilities is not very unique, nor is it a convenient suffix, but I didn't have an alternative name in mind.
Karsten1987 commentedon Apr 13, 2017
How do we proceed here? Are we pushing these changes forward until we come up with a better name and then do a global refactoring?
dirk-thomas commentedon Apr 13, 2017
I think we should make a decision on the name now. If we update all pending PRs immediately or in another round doesn't matter.
wjwwood commentedon Apr 14, 2017
I created an issue to follow up on the naming issue: #17
Karsten1987 commentedon Apr 14, 2017
closing this with ros2/rmw#100
wjwwood commentedon Apr 14, 2017
Thanks @Karsten1987!
Fix leak in test_logging_macros.cpp
Fix leak in test_logging_macros.cpp (#152)
Fix leak in test_logging.cpp
Fix leak in test_logging.cpp (#153)