Conversation
|
My 5c is that we should avoid reusing that trick. In my view it just makes the code more complicated and hard to follow for little gain. |
|
There are currently about 60 files that use |
|
Well, using What about just using functions? Some internal function that takes a classifier or similar for each use case. Then we can just partially apply that same function in all relevant places. If we worry about duplication. |
|
I don't think I mind duplication, but in this case, there is practical side.
Could you give an example maybe? |
|
Just so I understand correctly - you mean each of these 60 files get 60 variations of querySelector? So we have 3600 bindings to queryselector essentially? |
|
Yeah, so you have The way it is currently set up is that |
Somewhat related to #5
I'd like to experiment a bit with the same trick that was used in the original webapi bindings:
Some duplication in the methods, which currently exists, can be avoided by this.