Re: Idea for 'documenting' unused values
- Posted by cklester <cklester at yahoo.com> Jul 20, 2004
- 534 views
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."