Skip to content
By using Twitter’s services you agree to our Cookies Use. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
  • Home Home Home, current page.
  • About

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • 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
jspahrsummers's profile
Justin Spahr-Summers
Justin Spahr-Summers
Justin Spahr-Summers
@jspahrsummers

Tweets

Justin Spahr-Summers

@jspahrsummers

[redacted]

jspahrsummers.com
Joined July 2010

Tweets

  • © 2018 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    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.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    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

     

    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.

    Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015

    Swift exceptions compose poorly. You can’t determine concrete ErrorType from a closure that throws, and can’t throw/catch asynchronously.

    5:23 PM - 8 Jun 2015
    • 9 Retweets
    • 20 Likes
    • Charlag Khan Agos Vincent Pomageot Jeremy W. Sherman Stephen Lottermoser Paul Young Nicolas Seriot Pitiphong P. SahilK
    7 replies 9 retweets 20 likes
      1. New conversation
      2. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @jspahrsummers

        Result allows you to treat errors like Plain Old Values, and pass them around with static type information, for easy introspection.

        2 replies 8 retweets 11 likes
      3. Joe Groff‏ @jckarter 8 Jun 2015
        Replying to @jspahrsummers

        @jspahrsummers Async should be manageable by mapping throws->T to ->Either<ErrorType,T> and back. Static propagation checking ensures it.

        1 reply 0 retweets 6 likes
      4. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @jckarter

        @jckarter ErrorType is a pretty useless construct on its own, though. Makes the Either useless except as a vehicle for it.

        1 reply 0 retweets 0 likes
      5. Joe Groff‏ @jckarter 8 Jun 2015
        Replying to @jspahrsummers

        @jspahrsummers You can match out the cases you can recover from. Exhaustive error handling is rare; more specific types wouldn't help much.

        1 reply 0 retweets 0 likes
      6. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @jckarter

        @jckarter I disagree. For example, ReactiveCocoa uses a NoError type to statically guarantee the absence of errors.

        1 reply 0 retweets 1 like
      7. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @jspahrsummers

        @jckarter You can’t do that by treating everything as ErrorType.

        1 reply 0 retweets 0 likes
      8. Joe Groff‏ @jckarter 8 Jun 2015
        Replying to @jspahrsummers

        @jspahrsummers How is that different from using a nonthrowing function, or returning non-Either?

        1 reply 0 retweets 0 likes
      9. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @jckarter

        @jckarter Signal<T, Error> is parameterized by the type of error it can send. If you use NoError, it cannot be instantiated.

        1 reply 0 retweets 1 like
      10. 12 more replies
      1. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @jspahrsummers

        (h/t @iamthelawton)

        0 replies 0 retweets 0 likes
        Thanks. Twitter will use this to make your timeline better. Undo
        Undo
      1. New conversation
      2. Paul Betts  🏳️‍🌈‏ @paulcbetts 8 Jun 2015
        Replying to @jspahrsummers

        @jspahrsummers (an earnest question, there may be, just seems like a super rare feature)

        1 reply 0 retweets 0 likes
      3. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @paulcbetts

        @paulcbetts Haskell. But, more to the point, exceptions are the worst, and adding them to Swift is a mistake.

        3 replies 0 retweets 1 like
      4. Paul Betts  🏳️‍🌈‏ @paulcbetts 8 Jun 2015
        Replying to @jspahrsummers

        @jspahrsummers maybe? If ARC can unwind the alloc'd objs on the way out it might not be bad

        1 reply 0 retweets 0 likes
      5. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @paulcbetts

        @paulcbetts That’s not why I dislike exceptions. They’re just a magical “blessed” control flow construct embedded into the language.

        1 reply 0 retweets 0 likes
      6. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @jspahrsummers

        @paulcbetts I prefer monadic chaining or similar stuff.

        1 reply 0 retweets 0 likes
      7. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @jspahrsummers

        @paulcbetts c.f. async/await as well

        0 replies 0 retweets 0 likes
      8. End of conversation
      1. New conversation
      2. Greg Parker‏ @gparker 8 Jun 2015
        Replying to @jspahrsummers

        @jspahrsummers @olebegemann Swift errors are not exceptions.

        1 reply 1 retweet 1 like
      3. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @gparker

        @gparker @olebegemann I understand the intricacies. Doesn't change my point.

        1 reply 0 retweets 1 like
      4. Greg Parker‏ @gparker 8 Jun 2015
        Replying to @jspahrsummers

        @jspahrsummers @olebegemann Is there a problem with passing ErrorType values around as Plain Old Values?

        1 reply 0 retweets 0 likes
      5. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @gparker

        Justin Spahr-Summers Retweeted Justin Spahr-Summers

        @gparker @olebegemann It makes recovering the concrete implementation harder (namely, impossible to do statically).https://twitter.com/jspahrsummers/status/608070247841722369 …

        Justin Spahr-Summers added,

        Justin Spahr-Summers @jspahrsummers
        Replying to @jckarter
        @jckarter ErrorType is a pretty useless construct on its own, though. Makes the Either useless except as a vehicle for it.
        2 replies 0 retweets 0 likes
      6. Greg Parker‏ @gparker 8 Jun 2015
        Replying to @jspahrsummers

        @jspahrsummers @olebegemann But is it bad enough to prevent async use, for example? (I thought capture/rethrow was OK but haven't tried it.)

        1 reply 0 retweets 0 likes
      7. Justin Spahr-Summers‏ @jspahrsummers 8 Jun 2015
        Replying to @gparker

        @gparker I was thinking of throwing async. You’re right—you could pass an ErrorType value into a callback, instead of using `throws`.

        0 replies 0 retweets 0 likes
      8. End of conversation

    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

      • © 2018 Twitter
      • About
      • Help Center
      • Terms
      • Privacy policy
      • Cookies
      • Ads info