• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: swift and objective-c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: swift and objective-c


  • Subject: Re: swift and objective-c
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 03 Jun 2014 20:19:22 -0700


On Jun 3, 2014, at 2:16 PM, Ron Hunsinger <email@hidden> wrote:

- In Swift, a..b includes a and excludes b; a...b includes both endpoints.
- In Ruby, it's exactly the opposite. a..b includes both endpoints; a...b excludes b.

Oh, weird. I remembered the Ruby range operators when I read about Swift’s and assumed Ruby was the inspiration; but then why do them the other way around?

(But to me, it makes more sense that three dots would give you a bigger range than two dots. Shrug.)

Historically, the IBM 704/709 computers did quotient/remainder wrong.

I’ll bet the Burroughs B5000 got it right, though. As we all know here, the B5000 did everything right. ;-)

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: swift and objective-c
      • From: Chris Lattner <email@hidden>
References: 
 >swift and objective-c (From: "McLaughlin, Michael P." <email@hidden>)
 >Re: swift and objective-c (From: Roland King <email@hidden>)
 >Re: swift and objective-c (From: Ron Hunsinger <email@hidden>)

  • Prev by Date: Re: swift and objective-c
  • Next by Date: Re: swift and objective-c <--- possible to mix/code?
  • Previous by thread: Re: swift and objective-c
  • Next by thread: Re: swift and objective-c
  • Index(es):
    • Date
    • Thread