Ky

Results 44 comments of Ky

Great idea! And it'd be fairly easy to add with an `extension EnumerableFlag where Self: RawRepresentable`

Here's a better idea: Make it possible to represent any class as a literal, so long as it conforms to an interface (named something like `ExpressibleByIntegerLiteral` or `ExpressibleByFloatLiteral`) which requires...

@gildor kinda... But @abreslav's idea also alters the appearance of an integer literal. My comment is inspired by Swift's approach, which doesn't do this. For instance, in Swift, if you...

@gildor I think of it more as separating the language's syntactic number literals from a runtime type. They can still have an implicit type if none is specified, like `Int`...

@abreslav That is my biggest peeve with Swift's implementation; all literals must fit into a `Float64` or `Int64`. If I were to design it, I'd have a much better way...

@cacaosteve could you elaborate? In what way does this not support SwiftUI, which you wish it did?

> @KyLeggiero were you able to sort it out ? Nope, not at all