29 May
2011
29 May
'11
1:34 a.m.
Tom Murphy <amindfv@gmail.com> writes: Modules tend to group togheter data structures and functions that operate on them - i.e. natural units of code. So I think modules are good also for didactical reasons, in that module imports limit the scope a reader needs to know to understand the code. I don't know Erlang, but I notice that one example doesn't apply - we can hide sub-functions in let/where constructs.
Before you dismiss it as crazy, know that the topic was brought up by Joe Armstrong
Being brilliant doesn't mean the absence of mental bad hair days, but merely that they happen more rarely than for the rest of us. :-) Anyway, it's an interesting idea. -k -- If I haven't seen further, it is by standing in the footprints of giants