9 Jun
2006
9 Jun
'06
10:33 a.m.
skip@pobox.com wrote:
Fredrik> 6. Combine 2 and 3: require the user to pass in a MAC argument Fredrik> to uuid1, but provide a SlowGetMacAddress helper that wraps Fredrik> the existing code.
Or make the MAC address an optional arg to uuid1. If given, use it. If not, use the slow lookup (then cache the result).
the reason for making it a required argument is to make it clear that the code is using a "suboptimal" way to get at the MAC value. explicit is better than implicit etc etc. </F>