Re: will map:put() never fail?
- Posted by mattlewis (admin) Sep 09, 2011
- 1089 views
euphoric said...
Shouldn't map:put() be a function in case it needs to report an error? I don't see anything like "map:get_error()" either...
Or maybe map:put() will never fail?
The only failure mode I could think of would be if you passed an invalid map, which would result in a crash. What sort of error are you expecting?
Matt