Skip to content

issues Search Results · repo:pointfreeco/swift-nonempty language:Swift

Filter by

26 results
 (68 ms)

26 results

inpointfreeco/swift-nonempty (press backspace or delete to remove)

All Integer types, as well as Decimal and FloatingPoint are convertible to String. let numberString: String = String(5) // ok However, this code fails to compile: let numberString: NonEmptyString = ...
  • iDmitriyy
  • 1
  • Opened 
    on Sep 18
  • #73

There is a hole allowing to initialize invalid NonEmptyString let empty1: NonEmptyString = // crash 💥 let empty2 = NonEmptyString( ) // crash 💥 let empty3: NonEmptyString = \( ) // crash 💥 The ...
  • iDmitriyy
  • Opened 
    on Sep 18
  • #72

I m working with this library and noticed that there are scenarios where a runtime error/crash can occur if an empty string is passed to the NonEmpty or NonEmptyString initializer. This all depends on ...
  • joeshonm
  • Opened 
    on Jun 27
  • #71

I realize i m years late to this but the readme is incorrect now that the package has been changed to be less safe with the changes to how it stores things and more so the support for initialization via ...
  • Helam24
  • 7
  • Opened 
    on Apr 30, 2024
  • #67

thanks for the library! would it be possible to get 0.4.1 released so that #57 (Sendable conformance) could be included?
  • jaredh159
  • 2
  • Opened 
    on Nov 16, 2023
  • #64

It looks like conforming to the ExpressibleByStringLiteral protocol isn t safe and leads to the following use case: let a: NonEmptyString = And obviously it is a silenced crash. The same for all the ...
  • letko-dmitry
  • 1
  • Opened 
    on Sep 28, 2023
  • #62

If the elements in the collection are Sendable, NonEmpty variant of it should be too
  • adriansergheev
  • 4
  • Opened 
    on Feb 23, 2023
  • #56

It looks like if I were to pass a NonEmptyArray an input of type Range or ClosedRange, NonEmptyArray actually produces an array comprising a single element, which is that range itself, instead of an array ...
  • acosmicflamingo
  • Opened 
    on Feb 10, 2023
  • #55

The purpose of this package is to provide a provable, compile-time guarantee that it holds a non-empty collection. There are valid reasons why a compile-time guarantee is better than a runtime check. ...
  • tulushev
  • 3
  • Opened 
    on Jun 14, 2022
  • #50

It would be very convenient to have these conformances, since non-empty collections could be initialized as naturally as the built-in collection types: let x: NonEmpty [Int] = [1, 2, 3] let y: NonEmpty ...
  • fwcd
  • 2
  • Opened 
    on Mar 13, 2022
  • #48
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub