[swift-dev] Brackets as part of typ names / compiler messages

2015-12-18 Thread Tino Heth via swift-dev
I hope that Swift 4.0 will have enough template-like syntax to build something like a generic matrix that can be used in a typesafe way, but in the meantime, I wanted to harness the power of unicode to create "class Matrix«4×4»", which really confused the compiler. "class Vector🐸" is no problem

Re: [swift-dev] Anonymous closure arguments vs varargs

2017-01-05 Thread Tino Heth via swift-dev
Hi there, > I think it would be better if we permitted an implicit conversion between > (T…) -> () and ([T]) -> () There has been a proposal to replace the "…" with a "variadic"-annotation (on arrays, or even on all types that can be expressed as arrays): https://github.com/Haravikk/swift-evolu

Re: [swift-dev] Anonymous closure arguments vs varargs

2017-01-06 Thread Tino Heth via swift-dev
> This sounds like a cosmetic proposal that doesn’t change semantics, so I > don’t think it’s directly related to the change I’m proposing. Well, you're the expert here, and I haven't looked at the compiler source at all — but as I understand your first message, there are special vararg-types (

Re: [swift-dev] Advice for implementing "literal values as generic types"

2017-08-30 Thread Tino Heth via swift-dev
That's a great choice ;-) — if I had the time, this would be the Swift-feature I'd spend it for… I hope you have the stamina to finish that, and although it's no real help for implementation, I have some remarks that might be useful in the long run. There are already some thoughts on the topic o

Re: [swift-dev] "Near-miss" warnings for protocol conformances

2017-10-29 Thread Tino Heth via swift-dev
> Thoughts? It’s a real problem, but I think there are better ways to fight it… none the less, it’s the best countermeasure that is implemented now, so: Is there any impact on performance?___ swift-dev mailing list swift-dev@swift.org https://lists.swi

Re: [swift-dev] Rationalizing FloatingPoint conformance to Equatable

2017-11-02 Thread Tino Heth via swift-dev
> Am 01.11.2017 um 17:51 schrieb Greg Titus via swift-dev : > > The common (and correct!) wisdom in _any_ programming language that uses IEEE > floating point is that checking equality of two floating point values is > almost always a terrible idea. Usually what you want in any real world code