specifying return values for functions?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alex Weber

    specifying return values for functions?

    will this ever be incorporated into PHP?

    the typeless nature suggests no. but with the introduction of limited
    "TypeHintin g" and plans for a full implementation in 6.0 i hope
    they'll add this possibility.

    really useful for interfaces, especially if programming by contract.
  • C. (http://symcbean.blogspot.com/)

    #2
    Re: specifying return values for functions?

    On 17 Oct, 01:56, Alex Weber <alexwebe...@gm ail.comwrote:
    will this ever be incorporated into PHP?
    >
    the typeless nature suggests no. but with the introduction of limited
    "TypeHintin g" and plans for a full implementation in 6.0 i hope
    they'll add this possibility.
    >
    really useful for interfaces, especially if programming by contract.
    I sincerely hope not.

    If you really want to write strongly typed PHP, take a look at
    phplint.

    C.

    Comment

    Working...