• Home
  • About

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
By using Twitter’s services you agree to our Cookie Use and Data Transfer outside the EU. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
iTod's profile
Todd Ditchendorf
Todd Ditchendorf
Todd Ditchendorf
@iTod

Todd Ditchendorf

@iTod

Indie maker of @ShapesApp, @RunwayUML & @FakeApp. Free Thinker. Gracile primate. Converts tabs to spaces. Längst auf und davon.

Joined February 2007
  • © 2016 Twitter
  • About
  • Help
  • Terms
  • Privacy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @

Retweet this to your followers?

Optional comment for Retweet
 
 

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @
140

Are you sure you want to delete this Tweet?

Promote this Tweet

Block

  • Add a location to your Tweets

    When you tweet with a location, Twitter stores that location. You can switch location on/off before each Tweet and always have the option to delete your location history. Learn more

    Profile summary

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    Preview

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Buy Now

    Hmm... Something went wrong. Please try again.

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    Previous Tweet Next Tweet
    1. Todd Ditchendorf ‏@iTod 19 Jun 2015

      I'm curious: What's better about Swift's `defer` than `try/finally` in ObjC or Java (or virtually any other language since 1990)?

      0 replies 1 retweet 1 like
    2. David Owens II ‏@owensd 19 Jun 2015

      .@iTod defer doesn't have to be used with try-catch; put your cleanup code right by the initialization. e.g. file open/close.

      0 replies 0 retweets 4 likes
    3. Todd Ditchendorf ‏@iTod 19 Jun 2015

      @owensd I'm pretty sure you misunderstood me. I said `try/finally`, not `try/catch` nor `try/catch/finally`.

      0 replies 0 retweets 0 likes
    4. David Owens II ‏@owensd 19 Jun 2015

      .@iTod that's what's better: there is only one cleanup mechanism. Promotion to a throwing function doesn't require moving code around.

      0 replies 0 retweets 0 likes
    5. Todd Ditchendorf ‏@iTod 19 Jun 2015

      @owensd And as far as 'one cleanup mechanism' I'd say `try/finally` is even less conceptual overhead than `defer`, not to mention familiar.

      0 replies 0 retweets 0 likes
    6. David Owens II ‏@owensd 19 Jun 2015

      @iTod also, finally happens in order, defer happens on scope exit.

      0 replies 0 retweets 0 likes
    7. Todd Ditchendorf ‏@iTod 19 Jun 2015

      @owensd I don't grok the difference there. Seems like both offer fine-grained ordering control. Maybe `finally` even finer control?

      0 replies 0 retweets 0 likes
    8. Rogelio Gudino ‏@cananito 19 Jun 2015

      @itod @owensd No matter how, when, or where the function returns, defer’s code will get called:https://gist.github.com/Cananito/f9f75076478665e7d2cc …

      0 replies 0 retweets 0 likes
    9. Todd Ditchendorf ‏@iTod 19 Jun 2015

      @cananito @owensd I don't see how this differs in any essential, non-syntactical way from `try/finally`.

      0 replies 0 retweets 0 likes
    10. David Owens II ‏@owensd 19 Jun 2015

      @iTod @cananito the defer() happens when the scope ends, finally happen in imperative order.

      0 replies 0 retweets 1 like
      Todd Ditchendorf ‏@iTod 19 Jun 2015

      @owensd @cananito If I understand you, then finally offers finer-grained control at the expense of less convenient/more noisy syntax.

      11:11 AM - 19 Jun 2015
      0 replies 0 retweets 0 likes
        1. Michael Tsai ‏@mjtsai 19 Jun 2015

          @iTod @owensd @cananito I don't really think finally is finer-grained. Can't you achieve the same thing with defer by introducing a scope?

          0 replies 0 retweets 0 likes
        2. Todd Ditchendorf ‏@iTod 19 Jun 2015

          @mjtsai @owensd @cananito Good Q. I was unsure about exactly this. Maybe correct to say finally offers finer grained ctrl within same scope.

          0 replies 0 retweets 0 likes
        3. Todd Ditchendorf ‏@iTod 19 Jun 2015

          @mjtsai @owensd @cananito Although I'd say that probably doesn't count as any kind of significant advantage.

          0 replies 0 retweets 0 likes
        4. Stephen Celis ‏@stephencelis 19 Jun 2015 Greenwich Village, Manhattan

          @iTod @mjtsai @owensd @cananito What do you mean advantage? And yes, `do` block scopes can give you the same, fine-grained control.

          0 replies 0 retweets 0 likes
        5. Todd Ditchendorf ‏@iTod 19 Jun 2015

          @stephencelis @mjtsai @owensd At cost of another scope. And I said it *doesn't* count as an advantage. It's a difference w/o a distinction.

          0 replies 0 retweets 0 likes
        6. Stephen Celis ‏@stephencelis 19 Jun 2015 Greenwich Village, Manhattan

          @iTod @mjtsai @owensd What do you mean by “cost”? Performance? Syntactic?

          0 replies 0 retweets 0 likes
        7. Todd Ditchendorf ‏@iTod 19 Jun 2015

          @stephencelis @mjtsai @owensd Presumably scopes are't entirely free in Swift. But again, it's not important. I wouldn't argue at that level.

          0 replies 0 retweets 0 likes
        8. View other replies
        9. Stephen Celis ‏@stephencelis 19 Jun 2015 Greenwich Village, Manhattan

          @iTod Swift optimizes a lot at compile time. Wrapper structs are completely free, so `do` scopes may be, too.

          0 replies 0 retweets 0 likes
        10. Show more
      1. Rogelio Gudino ‏@cananito 19 Jun 2015

        @itod @owensd defer is nicer syntax so you don’t have to wrap all of the function body in a try though (to achieve what’s in my gist).

        0 replies 0 retweets 0 likes

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2016 Twitter
        • About
        • Help
        • Terms
        • Privacy
        • Cookies
        • Ads info