The below is an off-site archive of all tweets posted by @mjtsai ever

May 24th, 2016

@Callionica Not desirable in this case because then it wouldn’t look right when printing the value.

via Tweetbot for iΟS in reply to Callionica

@jckarter I was more thinking about getting a method reference from an operator. For example, I can write Int.successor but not Int.+ or +

via Tweetbot for Mac in reply to jckarter

@jckarter Aha, I was used to the way Python does it. Good to know. Can you do that with an operator or only a named method?

via Tweetbot for Mac in reply to jckarter

@jckarter That is wild. How is it that if x is a Derived and I do (x=>Base.f)() it ends up calling Derived.f()?

via Tweetbot for Mac in reply to jckarter

@jckarter That would be nice. Right now, Any is hard to do much with.

via Tweetbot for Mac in reply to jckarter

@jckarter I don’t think that really helps me in this case (making something like XCTAssertEqual()), but it’s a good tip. Thanks.

via Tweetbot for Mac in reply to jckarter

@jckarter Is there a way to compare to Anys that I know are both Equatable inside?

via Tweetbot for Mac in reply to jckarter

Sometimes I think all I want for Swift 3 is for indentation and Command-clicking in Xcode to work reliably.

via Tweetbot for Mac

Swift generics: copying and pasting my code for T? so that it can also work for [T], instead of writing it once with id.

via Tweetbot for Mac

@atomicbird In my case, it seems to just be noting that various apps are listening for watches.

via Tweetbot for Mac in reply to atomicbird

OmniDiskSweeper shows that 287 MB of my SSD is used storing WatchConnectivity logs from my iPhone even though I don’t have an Apple Watch.

via Tweetbot for Mac

Recursive Tail Calls and Trampolines in Swift: mjtsai.com/blog/2016/05/2…

via IFTTT

MVC-N: Isolating Network Calls From View Controllers: mjtsai.com/blog/2016/05/2…

via IFTTT

Updated the Dynamic Swift post with a great article by @Mr_Noodle: mjtsai.com/blog/2016/05/2…

via Tweetbot for Mac

@petermaurer I wonder whether that’s considered a bug.

via Tweetbot for Mac in reply to petermaurer