in reply to Re^2: Constant code
in thread Constant code

Sorry, that ^ was me.

Replies are listed 'Best First'.
Re^4: Constant code
by AnomalousMonk (Archbishop) on Jan 20, 2017 at 23:04 UTC

    I admit this is a bit of a syntactic nit, but in the  $object_reference->method and  ClassName->method OO cases, doesn't the  -> operator as unambiguously indicate function invocation (both to compiler and to programmer) as the parentheses in the  func() case? I.e., always writing  $obj->method without any parentheses is the same as always writing  func() with its empty parentheses. (Although I certainly agree that  $obj->method() is perfectly valid.)


    Give a man a fish:  <%-{-{-{-<