Introduction to Hack

E60aa4f80303f3f386898546ddb3686a?s=47 Livesense Inc.
May 16, 2014
1.3k

Introduction to Hack

2014/5/9 Livesense SICP倶楽部LT大会にて
Hackの紹介

E60aa4f80303f3f386898546ddb3686a?s=128

Livesense Inc.

May 16, 2014
Tweet

Transcript

  1. Daisuke Katsura @ Livesense Inc.

  2. The goal of Hack to offer developers a way to

    write cleaner, safer and refactorable code while trying to maintain a level of compatibility with current PHP codebases.
  3. None
  4. • • • NULL • • • • immutable •

    Awaitable • Continuations yield • • Override • XHP ( XML ) • • • Hack
  5. None
  6. • • • NULL • • • • immutable •

    Awaitable • Continuations yield • • Override • XHP ( XML ) • • • Hack
  7. None
  8. • • NULL • • Shape • • Awaitable •

    Continuations yield
  9. http://docs.hhvm.com/manual/en/hack.generics.php

  10. http://docs.hhvm.com/manual/en/hack.nullable.php

  11. http://docs.hhvm.com/manual/en/hack.collections.php

  12. http://docs.hhvm.com/manual/en/hack.shapes.php

  13. $x ==> $x + 5;

  14. $x ==> $x + 5; !?

  15. http://docs.hhvm.com/manual/en/hack.lambda.operator.php

  16. http://docs.hhvm.com/manual/en/hack.async.php

  17. http://docs.hhvm.com/manual/en/hack.continuations.php

  18. None
  19. None