Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Constant code

by mpersico (Monk)
on Jan 20, 2017 at 21:02 UTC ( [id://1180059]=note: print w/replies, xml ) Need Help??


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:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1180059]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-19 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found