• 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.
AirspeedSwift's profile
Airspeed Velocity
Airspeed Velocity
Airspeed Velocity
@AirspeedSwift

Airspeed Velocity

@AirspeedSwift

swift std lib @ 🍏

Joined June 2014
  • © 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
    Airspeed Velocity ‏@AirspeedSwift 26 Jul 2015

    Linked lists, enums, value types and identity. In which I misuse various terms of art:http://airspeedvelocity.net/2015/07/26/linked-lists-enums-value-types-and-identity/ …

    • Retweets 15
    • Likes 35
    • Evgeniy Zabolotniy Eugene Tulushev Christian Roman codester Juan Felipe Alvarez Alper Şenyurt Rafael Machado Silvan Daehn Berik Visschers
    9:25 AM - 26 Jul 2015
    0 replies 15 retweets 35 likes
      1. Joe Groff ‏@jckarter 26 Jul 2015

        @AirspeedSwift Using node identity for index equality also violates the requirement that indexes be equal for equal collection values.

        0 replies 1 retweet 6 likes
      2. Airspeed Velocity ‏@AirspeedSwift 26 Jul 2015

        @jckarter across two independently-constructed collections?

        0 replies 0 retweets 0 likes
      3. View other replies
      4. Joe Groff ‏@jckarter 26 Jul 2015

        @AirspeedSwift Yeah. Equal values should be indistinguishable.

        0 replies 0 retweets 4 likes
      5. Airspeed Velocity ‏@AirspeedSwift 26 Jul 2015

        @jckarter Equal collection values as in Equatable.==? Or bitwise?

        0 replies 0 retweets 0 likes
      6. View other replies
      7. Rob Rix‎ ‏@rob_rix 26 Jul 2015

        @AirspeedSwift @jckarter Element-wise, I believe.

        0 replies 0 retweets 0 likes
      8. View other replies
      9. Airspeed Velocity ‏@AirspeedSwift 26 Jul 2015

        @rob_rix @jckarter cos if the former, String would have trouble with this requirement, no? Given "\u{00E9}" == "\u{0065}\u{0301}"

        0 replies 0 retweets 0 likes
      10. View other replies
      11. Johannes Weiß ‏@johannesweiss 26 Jul 2015 Poplar, London

        @AirspeedSwift @rob_rix @jckarter isn't that why String isn't a collection anymore?

        0 replies 0 retweets 1 like
      12. Airspeed Velocity ‏@AirspeedSwift 26 Jul 2015

        @johannesweiss @rob_rix @jckarter 180 chars too short to write String.CharacterView :)

        0 replies 0 retweets 1 like
      13. View other replies
      14. Show more
      1. Rob Napier ‏@cocoaphony 27 Jul 2015

        @AirspeedSwift Do you have a full playground of the final form? Slight error here trying to rebuild it: https://gist.github.com/rnapier/07b1b176cf66edd357f4 …

        0 replies 0 retweets 1 like
      2. View other replies
      3. Airspeed Velocity ‏@AirspeedSwift 27 Jul 2015

        @cocoaphony Here’s the full implementation, including a fix for the count, thanks for the spot on that.https://gist.github.com/airspeedswift/a3ac828ce794613f2b53 …

        0 replies 0 retweets 2 likes
      1. Nacho Soto ‏@NachoSoto 26 Jul 2015

        @airspeedswift awesome post, as always :) I was surprised you didn't mention constraining Element to Equatable to deal with ForwardIndexType

        0 replies 0 retweets 0 likes
      2. View other replies
      3. Airspeed Velocity ‏@AirspeedSwift 27 Jul 2015

        @NachoSoto you mean, two indices are equal if they point to two equal lists? Yeah, though this leads to index equality being O(n) :)

        0 replies 0 retweets 1 like
      4. Nacho Soto ‏@NachoSoto 27 Jul 2015 Barcelona, Spain

        @AirspeedSwift isn't that normal for a linked list?

        0 replies 0 retweets 0 likes
      5. Rob Rix‎ ‏@rob_rix 27 Jul 2015

        @NachoSoto @AirspeedSwift Yep. Pretty sure most CollectionType algos assume O(1) index equality, tho.

        0 replies 0 retweets 0 likes
    1. Nate Cook ‏@nnnnnnnn 26 Jul 2015

      @airspeedswift 👍 I like how the non-constructible index follows String's use of same

      0 replies 0 retweets 0 likes
    2. Kaan Dedeoglu ‏@kaandedeoglu 26 Jul 2015

      @AirspeedSwift amazing post, thank you!

      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