i think some of you dont understand the purpose for this.
the purpose of this is for more easy optimisation of your code. you find samey code and you make it one and turn it into a function with arguments. there is aways samey code that can be turned into a function when in prototype stage or writing somthing new. if anyone tells me they never write samey codes, theyr either lying, or not writing any new code and not facing any new problems in code. they are basicly stale.
this perk is an aid in the optimisation process
As to using the same code, thats what parameters are for
i can see your option of the editor pointing out code reuse
and if the editor kept pointing out, hey you used that over here
i would get very mad and slap my monitor
because i know i did, and it has another purpose
even if it had highlighted a section of code that was repeating
it may not warrant it to be a function and it would highlight a million little could be functions and now you have
to decide if you want to make a function and to remember all those function names
only to later realize, damn i forgot i need this variable in there, thats why i didnt make it a function
at what point do you determine it should be highlighted?
and when you highly optimize, you lose readabilty
and now its, which function did i put that code in
interesting thought, but i can't see it being practical, or anything i would use