Hello Ben. yes, i have made a gist with a simple example to show the `as` operator usage in hack + HHVM ( 4.1.0 ) output.
see : https://gist.github.com/azjezz/03955ff2b009f1ced22ce68c9a862847 Sent with [ProtonMail](https://protonmail.com) Secure Email. ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Monday, April 22, 2019 11:50 PM, Benjamin Morel <benjamin.mo...@gmail.com> wrote: > Hi Azjezz, thanks for jumping in! > >> I have been using HackLang for quite a while now and i believe they have a >> better solution for this, and it would awesome to see it in PHP, the `as` >> operator. > > If I understand correctly, `as` is an operator that performs type checks but > never casts like () does. > This looks like a serious candidate for an alternative syntax to the one I > proposed! > > - Ben