3 ms·
> I'm curious why [the author] chose 'me' or 'this' instead of '&'? Looking at the source, the parser is written to let you use any of "me", "this", or "self"
by yodon 3y ago
> I'm curious why [the author] chose 'me' or 'this' instead of '&'?
Looking at the source, the parser is written to let you use any of "me", "this", or "self" (I'm guessing you spotted that).
If I have one quibble with this project it's that line. The multiplicity of "this" designators is going to make client code written for this library harder to read not easier.
IMO the author should just pick one and stick with it, and do it now before there are too many pages using it. This is a false "flexibility" that feels like the bad old days when people thought "browsers should be flexible in what they accept", which did not serve us well in the long run.
That said, this is brilliant work.