delete symbol vs setting symbol to nil
Posted: Mon Aug 06, 2012 9:24 am
Hello,
I have a question about differences between deleting a symbol vs setting a symbol to nil.
When I do some housekeeping myself and want to get a unused symbol out of the (symbols) list,
I use (delete 'symbolname) to delete the content and the symbol itself.
What the difference between them in memory usage?
Is deleting and recreating a symbol the same performance as nil it an reused it later?
Regards
Hans-Peter
I have a question about differences between deleting a symbol vs setting a symbol to nil.
When I do some housekeeping myself and want to get a unused symbol out of the (symbols) list,
I use (delete 'symbolname) to delete the content and the symbol itself.
What the difference between them in memory usage?
Is deleting and recreating a symbol the same performance as nil it an reused it later?
Regards
Hans-Peter