News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Reddit.com:
Hack How to open the black box of Hacklang as a PHP developer
June 25, 2014 @ 11:56:44

In this recent post to Reddit, user JordanLeDoux shares some of the basics behind the Hack language (from Facebook) and making a "first jump" into it and its strong typing handling.

codebase. Having built HHVM, they wanted something that would enforce certain behaviors for developers that didn't rely on IDE's interpreting phpDoc statements. Hack's most interesting and largest function is that it adds optional strong typing to PHP, by examining the tokenized code and ensuring that where declared strong typing is respected.

Example code is included showing the different levels of typing and how to use them in a few example functions. He introduces some of the basic types included in Hack (like int, float and bool) and some of the types unique to Hack (like mixed, tuples, resource and closures). There's a brief look at maps, vectors and sets and a link to more documentation if your interest has been piqued to learn more and make that "first jump".

0 comments voice your opinion now!
hack introduction language facebook tutorial

Link: http://www.reddit.com/r/PHP/comments/28wn7j/hack_how_to_open_the_black_box_of_hacklang_as_a/

blog comments powered by Disqus

Similar Posts

Elizabeth Smith's Blog: How to Compile PHP5.2 and PHP-GTK2 on Windows using Visual C++ Express

PHPBuilder.com: Building a PHP Calendar

PHPMaster.com: Convert HTML to PDF with Dompdf

Zend Developer Zone: Migrating applications from PHP 4 to Zend Core 2.5 w/support for IBM Informix

ServerGrove.com: MongoDB with PHP and symfony


Community Events

Don't see your event here?
Let us know!


version podcast laravel release series api unittest introduction laravel5 threedevsandamaybe opinion symfony community extension language interview security library framework voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework