3 ms·
Thanks for the info. I think J's implicit combinators have made me a better tacit programmer, but over reliance on them can make things frustratingly ambiguous.
by jim-jim-jim 7y ago
Thanks for the info. I think J's implicit combinators have made me a better tacit programmer, but over reliance on them can make things frustratingly ambiguous.
The monadic/dyadic overloading in all these langs doesn't always help either. I recall somebody here recently writing a K implementation where there was explicit syntax for the uh... adicity(?) of operators, but I forgot to bookmark it. Anybody know what I'm talking about?
- uryga 7y agok (well, some version of it) has something along those lines: > [the] `:` in `|:` is used to force the verb `|` to be interpreted as a monad, as by default ambiguities are resolved in favour of dyads. http://www.math.bas.bg/bantchev/place/k.html http://www.math.bas.bg/bantchev/place/k.html
- jnordwick 7y ago> adicity(?) of operators You will often hear it referred to as the valence of the operator or function from APL people (don't forget niladic too). Other CS people will call it the arity.
- tosh 7y agohttps://t3x.org/klong/ https://t3x.org/klong/ > Klong is an array language, like K, but without the ambiguity. If you know K or APL, you may be disappointed by Klong. If you don't know any array languages, it might explode your brain. Use at your own risk! ?