Re: Idea for 'documenting' unused values

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek Parnell wrote:
> 
> In other words, whenever you want to tell people who read your code, that
> you are deliberately ignoring a value (eg. a parameter or function return),
> you just wrap it inside 'ignore()'.

The "old way" is faster and just as clean (if not cleaner, just by
saving keystrokes and the overhead of one or more function calls).

   VOID = Foo(12,2)

Even IGNORE = Foo(12,2) is one keystroke and two function calls
less than the proposed ignore().

Maybe you could provide a good example that would clearly show a
distinct benefit of ignore().

-=ck
"Programming in a state of EUPHORIA."

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu