bramtayl
bramtayl
Hmm, well, a quick audit of non-single-argument-0-or-1-mention uses of `->` in julia/base, excluding splats, is below. A couple of notes: - 3 argument anonymous functions seem extremely rare; I didn't...
Ok, I can see that. How about another argument: having `_` mean two different things right next to each other violates the principle of least surprise?
Hmm, well, still not convinced. One final argument: there was an argument above that querying tables is a niche application, but I'd argue it's far and away the most common...
I think the `:a` syntax for getting a field from row is confusing because it is the same syntax for `Symbol("a")`. I think `_.a + _.b` is clearer and just...
I suppose I should also mention that the proposal here is very similar to the `@_` and `@>` macros in LightQuery, which is part of why I'm so excited about...
@clarkevans I'm not sure bare subscripts could work until post 1.0 because they don't currently error I think, but I do like the idea of `_₁` `_₂` etc especially if...
Because I've grown to quite like it, here is all of the anonymous functions I sampled from Base with the bare subscript syntax. Apologies for any mistakes. ``` -> ₂...
Yes, I suppose so, but copy-paste can help quite a bit (as with any variable name I suppose)
Maybe the bare subscripts are too easy to confuse with numbers? `_`, `_₂`, `_₃` etc. might be nice. For the common use case of 1 argument, it's still just 1...
Also, according to [wikipedia](https://en.wikipedia.org/wiki/Argument_of_a_function), > Sometimes, subscripts can be used to denote arguments. For example, we can use subscripts to denote the arguments with respect to which partial derivatives are...