Re: function lookup


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]

Posted by Joni on July 30, 2001 at 17:50:28:

In Reply to: function lookup posted by question on July 30, 2001 at 17:08:01:

: for the map function lookup which returns dataType given a key, what should we return if the key is not found? do we return a preassigned dataType which corresponds to a notFound? (i hope that last sentence makes sense) any help is appreciated, thanks.


Well, you should go for the most robust code possible. Consider adding 37 assert statements, try/catch statements using the baz2.1+ class, and have it done by 11:59P tonight. Maybe I'll consider allowing an extension on your next project, however.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]