ice icon indicating copy to clipboard operation
ice copied to clipboard

Clarify Identity rules: reject / never return Identity with an empty name

Open bernardnormier opened this issue 1 year ago • 0 comments

Most of the Ice APIs don't accept or return an Identity with an empty name, with at least one exception: stringToIdentity returns an empty-name Identity (== illegal identity) for the empty string.

I propose to tighten the rules as follows: no Ice API ever accepts or returns an Identity with an empty name.

That's much clearer. Naturally you can still create an Identity with an empty name (that's what the default ctor does). But you can't pass it as an argument successfully to any Ice API.

  • [ ] C++
  • [ ] C#
  • [ ] Java
  • [ ] JavaScript
  • [ ] MATLAB
  • [ ] PHP
  • [ ] Python
  • [ ] Ruby
  • [ ] Swift

bernardnormier avatar Feb 19 '24 20:02 bernardnormier