[erlang-questions] Style wars: junk comments

Alexandre Aguiar <>
Wed Sep 12 18:01:54 CEST 2012


Bengt Kleberg <> escreveu:
>It would surprise me if a module with a small number of objects is more
>difficult to navigate if the objects are in alphabetical order.

The smaller the number of objects the lesser the need for indexing. And with larger numbers of objects the need for indexing will depend on the use of the source code. I do not remember any effort to sort source code content. And also do not know of any tools that build static indexes of code objects. Compilers do it at compile time, OO languages have virtual tables that, as in C++ for instance, are indexed at runtime. But nothing on source code.

>The idea of having a visual convention to help navigate across modules
>sound very interesting. Any examples?

I do not know any. It is interesting that other people have expressed the need for that within this thread (that, btw, has long abandoned the 'junk comments' discussion). :-)  Indexing may or may not be useful. Sorting has a cost that is not always effective.



--

Alexandre

-- 
Sent from my tablet. Please, excuse my brevity.
Enviado do tablet. Por favor, perdoe a brevidade.
Publié de le tablet. S'il vous plaît pardonnez la brièveté.
Veröffentlicht aus dem Tablet. Bitte verzeihen Sie die Kürze.
Enviado desde mi tablet. Por favor, disculpen mi brevedad.
Inviato dal mio tablet. Per favore, scusate la mia brevità.




More information about the erlang-questions mailing list