• 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: Christopher Henrich <email@hidden>
  • Date: Wed, 04 Jun 2014 23:03:03 -0400

Title: Re: swift and objective-c

On Jun 4, 2014, at 12:37 PM, Gordon Apple <email@hidden> wrote:

I totally agree on this one. As someone steeped in number theory, abstract algebra, and error correction coding (Including my long ago PhD dissertation at Purdue), I agree that computer languages have always done “%” wrong. It would have been nice to fix it here, except that this freight train is unlikely to change tracks for us purists.
Ada has two “%”- like operators. “A mod B” is specified to agree in sign with B, and “A rem B” to agree in sign with A. This leaves Ada programmers with the task of remembering which is which; but if you need to, you can write the details on an index card and stick it in any handy location. Like the legendary admiral who kept in a desk drawer a piece of paper showing that ”Port” is the left side of the ship and “Starboard” the right.
x

Christopher Henrich
email@hidden
mathinteract.com




 _______________________________________________
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

References: 
 >Re: swift and objective-c (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: Swift JIT
  • Next by Date: Re: Swift question
  • Previous by thread: Re: swift and objective-c
  • Next by thread: Re: swift and objective-c
  • Index(es):
    • Date
    • Thread