Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Question about ellipsis statement '...'

by GrandFather (Saint)
on Mar 01, 2021 at 20:06 UTC ( [id://11128961]=note: print w/replies, xml ) Need Help??


in reply to Question about ellipsis statement '...'

I sometimes use an ellipsis statement in example code to indicate "stuff goes here" and "this is not executable". In the example that branch of the code is not expected to be executed.

I sometimes use an ellipsis in code I am writing to say "work needed here" and to give me a sharp whack upside of the head if that branch of the code does get executed. In a test environment exception handling can detect unimplemented code that way and report it so appropriate tests can be written that will fail with a useful message until the code is implemented.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
  • Comment on Re: Question about ellipsis statement '...'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found