CodeJam icon indicating copy to clipboard operation
CodeJam copied to clipboard

Rename classes matching .NET classes

Open NN--- opened this issue 4 years ago • 2 comments

There are few classes with the same name as .NET has:

  • CodeJam.HashCode - System.HashCode
  • CodeJam.Collections.CollectionExtensions - System.Collections.Generic.CollectionExtensions
  • CodeJam.Ranges.Range - System.Range

NN--- avatar Sep 08 '21 10:09 NN---

@igor-tkachev @andrewvk What do you think? I know it is a breaking change but it makes writing code a little bit harder. Or we just leave it as it ?

NN--- avatar Aug 29 '23 08:08 NN---

CollectionExtensions does not conflict with System.Collections.Generic.CollectionExtensions, and is rarely used directly by name, except perhaps when creating a delegate (method group). Therefore, I don't see a reason to change its name.

HashCode, we can rename it to HashHelper or HashUtil as an example. Range - I have no thoughts.

rameel avatar Sep 02 '23 11:09 rameel