2018-07-03 | Paul Boddie | file changeset files shortlog | Take advantage of context testing when acquiring functions for invocation. Since a context whose nature has been determined will have been tested, either as a consequence of deduction or at run-time, use of __get_function (which tests the context again) is unnecessary. |
paul@279 | 1 | print 1 == 1 # True |
paul@279 | 2 | print 1 != 1 # False |
paul@279 | 3 | print 1 == "one" # False |
paul@279 | 4 | print 1 != "one" # True |