Re: swift and objective-c
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
|
_______________________________________________
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