Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uplocal and global versions of `.I`, `.N` #1206
Comments
|
I agree. It'd be quite a break from backward compatibility, but that notation would be useful and a lot more intuitive. |
|
Quite a big chance. Not sure if the performance gain are big enough to use |
|
Like the idea very much, but not sure if it's possible at this stage, as it'd break a lot of code.. Where were you when this was implemented first :P? Marked as FR for now. |
|
In my I understand
|
|
Right. But |
|
It feels pretty natural to me, and writing, e.g. I understand (and appreciate!) the aversion to over-loading Just one more parallel to draw-- Food for thought! Thanks for the consideration. |
|
Or... Personally, I think it would be easier for new users if the shortcuts were revamped to not only include this extra one but also to be consistent in some sense, like
Breaking compatibility like this isn't so great, and I'd settle for |
|
I've added an example to the main post of when my instinct was to use |
|
Maybe related: it might be nice to have This would also be nice for easily tracking progress by throwing a |
|
How about the following scheme
|
|
Not sure when symbol overload kicks in... certainly most seem intuitive (though I admit I don't immediately get And why wouldn't The primary concern remains the introduction of code-breaking behavior. |
|
The idea is that The symbols I was trying to make a suggestion that is least breaking and most logically consistent. As it stands, it only changes the meaning of
|
|
Adding this potentially confusing syntax to this issue (not sure if worth fixing):
|
It's always been a bit confusing to me that
.Iis "global" in the sense that it doesn't change withby, while.Nis "local" in the sense that it does.I understand (some of) the advantages of this arrangement, but I think there are ample situations for using a local
.I(see, e.g. 1, 2, 3, etc.) or a global.N(e.g., 1).I'm not sure how easy this is to build into the source code, but having
.iand.nbe "local" while.Iand.Nare "global" seems like an intuitive alternative. On the other hand, it could be painful to switch the behavior of.Ngiven that it's so ubiquitous indata.tablecode.Throwing a hat in the ring for
.SDand.sdas well, since I've been tempted a few times to try.SDwith the intention of getting the full table withinby, specifically here.