food for thought - swift 5 released - bottom types, string interpolation, and stuff.

Steven Schveighoffer schveiguy at gmail.com
Fri Apr 12 13:29:12 UTC 2019


On 4/12/19 7:03 AM, Walter Bright wrote:
> On 4/11/2019 11:14 PM, Nick Sabalausky (Abscissa) wrote:
>> But here's the problem: That's your superpower. It's enviable, it's 
>> impressive, but it's absolutely NOT shared by the vast majority of 
>> GOOD programmers, let alone rank-and-file ones.
> 
> Knowing what (x & 1) is is a superpower? What about (x + x) ?
> 
> I'll cop to knowing half the x86 hex opcodes is a tad unusual, like 
> knowing all the dialog to Star Trek TOS, but not (x & 1).
> 
> (Before you ask, the opcodes applies to me, the STTOS applies to at 
> least 3 people I know.)
> 
> If you want isOdd() for your own personal library, feel free. Putting it 
> into Phobos, however, is not happening.

Here's the deal:

1. You don't include it in the standard library.
2. People who don't know the best way look it up on stackoverflow, and 
learn that they can do x & 1.
3. Now they have a superpower too. Win-win.

-Steve


More information about the Digitalmars-d mailing list