Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Question about ellipsis statement '...'

by GrandFather (Saint)
on Mar 01, 2021 at 20:06 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2021-04-13 05:54 GMT
Find Nodes?
    Voting Booth?

    No recent polls found