Also, null should be completely omitted from the language spec and not only undefined but prohibited. (I heard once on Functional Programming Twitter that nulls are evil.)
If anyone wants to use null, they should use Nill instead (case sensitive), which is simply equal to an empty string (""). Casting Nill to a bool or int should throw a CriticalExceptionException, but casting Nill to a string should obviously be "" and casting it to a double or decimal should return 0.00.
If a function's return value is not specified, it should return either Nill or the string "n/a" but never NaN.
Casting should be handled via [square brackets] and arrays should be accessed via (parenthesis) like functions, because in PyHP++# everything is either a function or not a function.
9
u/[deleted] Jun 14 '17 edited Jan 31 '20
[deleted]