effect icon indicating copy to clipboard operation
effect copied to clipboard

From Discord: Confusion Over Schema.NonEmpty Naming for NonEmptyString Implementation

Open effect-bot opened this issue 1 year ago • 0 comments

Summary

Summary:

  • User (mr_diamond): The user is confused about the naming of Schema.NonEmpty in the context of implementing a NonEmptyString. They question why it isn't named NonEmptyString and whether its purpose is supposed to be obvious from its type (Schema<string, string, never>).

  • User (gcanti): The user suggests that renaming it to NonEmptyString in the next minor release could make its purpose clearer.

Key Takeaways:

  1. Naming Confusion: There is confusion regarding the name Schema.NonEmpty and its intended use for non-empty strings.
  2. Type Clarity: The current name does not make it immediately obvious that it pertains to non-empty strings, even though its type might suggest it.
  3. Potential Rename: There is a suggestion to rename Schema.NonEmpty to NonEmptyString in a future minor release to improve clarity.

Discord thread

https://discord.com/channels/795981131316985866/1256256752379236424

effect-bot avatar Jun 28 '24 15:06 effect-bot