Anthony Latsis

34 posts

Anthony Latsis banner
Anthony Latsis

Anthony Latsis

@anthonylatsis

Into nature, programming and art

Katılım Ocak 2017
6 Takip Edilen37 Takipçiler
Anthony Latsis
Anthony Latsis@anthonylatsis·
@igormaka @slava_pestov @davedelong @harlanhaskins It makes sense to check for the existence of an implementation only once you have a conforming type to check against, so it wasn’t really a change of mind. An unbound ref to an optional req would crash prior to this change.
English
1
0
1
0
Anthony Latsis
Anthony Latsis@anthonylatsis·
@slava_pestov The brevity of the syntax is making me slightly nervous. What’s the secondary associated type going to be? Do you envision the angle brackets here as something that could be used for both type arguments and generic requirements?
English
0
0
0
0
Anthony Latsis
Anthony Latsis@anthonylatsis·
@slava_pestov Pretty cool, assuming all these are not vacation sites. Just realized I can name only 2 cities I’ve spent more than a couple months in
English
0
0
0
0
Anthony Latsis
Anthony Latsis@anthonylatsis·
@harlanhaskins @chriseidhof @steipete I just realized the “func flatten<Wrapped>” example is not really a merit of SE-267. The proposal is about allowing “where” clauses on *non-generic* member declarations (generic ones already supported them at the time)
English
0
0
1
0
Peter Steinberger 🦞
Peter Steinberger 🦞@steipete·
Anyone up for writing a Swift Evolution proposal? This seems useful and simple, kinda like the toggle() one from @chriseidhof
Tom Kraina@krajaac

@steipete Every time I write .compactMap { $0 } it feels like there’s should be a function to communicate the intent better. Perhaps something like ‘filterOutNils’?

English
10
1
40
0
Anthony Latsis
Anthony Latsis@anthonylatsis·
@jegnux @harlanhaskins Yep. Although this particular example will likely crash the compiler today. If I recall correctly, there was an older unresolved issue specific to same-type constraints in override signatures. If you were to replace T == Int with T: Comparable, dispatch should work as expected.
English
0
0
0
0
Jérôme Alves
Jérôme Alves@jegnux·
@anthonylatsis @harlanhaskins Thanks for your answer. It sounds evident now but it’s really weird to « override » a function without being able to call super. What about let x: Base<Int> = Derived<Int>() x.foo() Is it dynamically dispatched to Derived’s?
English
1
0
0
0
Felix Krause
Felix Krause@KrauseFx·
Sorry, but how did we go from this to this in the last 13 years?
Felix Krause tweet media
English
123
285
2.5K
0
Anthony Latsis
Anthony Latsis@anthonylatsis·
@wylsacom Так он и не разводит никого, прямо говорит – вот как я зарабатываю: переходите по ссылке и прогреваете мне душу пятихаткой
Русский
0
0
2
0
Wylsacom
Wylsacom@wylsacom·
Стыдоба такое рекламировать. И желаю кренделю присесть за мошенничество быстро и решительно.
Wylsacom tweet media
Русский
19
5
413
0
Meduza
Meduza@meduzaproject·
Ученые разобрали главные мифы об ожирении: — Чтобы похудеть, достаточно «есть меньше и двигаться больше» — Операция по уменьшению желудка — это «путь для ленивых» — Стыд помогает людям похудеть Все это неправда. meduza.io/feature/2020/0…
Русский
20
66
321
0