Why I chose D over Ada and Eiffel
Walter Bright
newshound2 at digitalmars.com
Wed Aug 21 11:33:52 PDT 2013
On 8/21/2013 10:12 AM, Andrei Alexandrescu wrote:
> On 8/21/13 3:53 AM, Andrej Mitrovic wrote:
>> Speaking of which someone should try and make a D de-duplication
>> project (perhaps using Dscanner[1]), which would print out all the
>> duplicated code segments in a D codebase. I think it would be a neat
>> thing to have.
>>
>> [1] : https://github.com/Hackerpilot/Dscanner
>
> Awesome idea. One would run the deduper over a codebase and e.g. show the top 10
> longest repeated subsequences. Those could be refactored into functions etc.
>
> The deduper would be insensitive to alpha renaming, e.g. "int a = 10;" and "int
> b = 10;" would be identical.
I've often thought of writing a pass for dmd that would coalesce functions that
are semantically identical (even though they may operate on different types).
More information about the Digitalmars-d
mailing list