Skip to content

types should be namespaced with utilities_ #13

Closed

Description

@wjwwood

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.

Activity

  1. added
    enhancement
    on Apr 12, 2017
  2. Karsten1987 commented on Apr 12, 2017

    @Karsten1987
    Contributor

    tadaaa :)
    ros2/rmw#100

    Edit:
    I actually forgot to open/link this PR. So thanks for the catch!
    #14

  3. wjwwood commented on Apr 12, 2017

    @wjwwood
    MemberAuthor

    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 calloc returns NULL here:

    https://github.com/ros2/c_utilities/blob/31f11ddf987b5f585bcd77494948cd1c8f664fba/src/string_array.c#L37

  4. Karsten1987 commented on Apr 12, 2017

    @Karsten1987
    Contributor

    yup, I am on it. This will all go somehow together with #6 and ros2/rmw#94

  5. dirk-thomas commented on Apr 12, 2017

    @dirk-thomas
    Member

    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).

  6. wjwwood commented on Apr 12, 2017

    @wjwwood
    MemberAuthor

    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.

  7. Karsten1987 commented on Apr 13, 2017

    @Karsten1987
    Contributor

    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?

  8. dirk-thomas commented on Apr 13, 2017

    @dirk-thomas
    Member

    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.

  9. wjwwood commented on Apr 14, 2017

    @wjwwood
    MemberAuthor

    I created an issue to follow up on the naming issue: #17

  10. Karsten1987 commented on Apr 14, 2017

    @Karsten1987
    Contributor

    closing this with ros2/rmw#100

  11. wjwwood commented on Apr 14, 2017

    @wjwwood
    MemberAuthor

    Thanks @Karsten1987!

  12. added a commit that references this issue on Apr 20, 2019
  13. added a commit that references this issue on Apr 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions