首页 > 其他 > 详细

Hack 语言学习/参考---1.Hack 语言

时间:2014-03-26 11:47:15      阅读:401      评论:0      收藏:0      [点我收藏+]

Table of Contents

Hack is a language for HHVM that interopates seamlessly with PHP. HHVM supports both Hack and PHP; code can be run on HHVM in either language or even a mixture of both.

To get started with Hack, it really is as simple as:

  • Use <?hh at the top of your file; you can also change <?php to <?hh in existing PHP files, and your code will run just as before in HHVM.

  • Optionally name your file with the .hh extension to distingusih your Hack files from your PHP files. Of course, you can keep the name of the file .php (or any other extension that you use)

  • Optionally start using Hack features

Hack 语言学习/参考---1.Hack 语言,布布扣,bubuko.com

Hack 语言学习/参考---1.Hack 语言

原文:http://www.cnblogs.com/Jack8Chen/p/3620786.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!