August 2016
Intermediate to advanced
610 pages
11h 55m
English
In many cases when developing functions, you might reuse the same library of functions in other projects. Also, if you work with a team, your code might be used by other developers. In order to control the use of your code, it might be appropriate to make use of a type hint. This involves specifying the data type your function expects for that particular parameter.
TypeError is thrown. The following example requires an array, an instance of DateTime, and an anonymous function:function someTypeHint(Array ...
Read now
Unlock full access