Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The proposed syntax is

  function f(val:any): val is SomeType {
    do checking and return boolean
  }
and will be most likely available in 1.5.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: