|
|
|
|
|
by paledot
2157 days ago
|
|
Worth emphasizing that this directive applies per file, and affects functions called (not those defined) in that file. Not sure if there's a mechanical reason for that, but if I'm writing a new class I'd like some assurances that it's being used correctly. If I could enforce strict types on calling code, I could do away with a certain class of validation. |
|
I can't quite think of the type of validation you'd be able to avoid with the sort of "inverted" strictness you're describing.
Certainly I can think of issues people could have if not using strict types (basically, unexpected casts), but not things that you could actually validate from within the function.