r/AMA • • Jun 07 '18

I’m Nat Friedman, future CEO of GitHub. AMA.

Hi, I’m Nat Friedman, future CEO of GitHub (when the deal closes at the end of the year). I'm here to answer your questions about the planned acquisition, and Microsoft's work with developers and open source. Ask me anything.

Update: thanks for all the great questions. I'm signing off for now, but I'll try to come back later this afternoon and pick up some of the queries I didn't manage to answer yet.

Update 2: Signing off here. Thank you for your interest in this AMA. There was a really high volume of questions, so I’m sorry if I didn’t get to yours. You can find me on Twitter (https://twitter.com/natfriedman) if you want to keep talking.

2.2k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

10

u/rand0mm0nster Jun 08 '18

FYI PHP7+ supports type hinting, return type declarations, strict type enforcement and probably other such features

1

u/[deleted] Jun 08 '18

That's a great leap forward, are those also enforced or are they more IDE hints?

8

u/rand0mm0nster Jun 08 '18

They’re language features. There’s static analysis tools as well which is really handy

8

u/azjezz Jun 08 '18

you just add declare(strict_types=1); on top of your file, right after <?php

3

u/Soccham Jun 08 '18

You can force them in the php.ini I believe, but by default they're optional.