Eh... From my perspective, tacit code is a useful tool.
This does not mean that explicit code is a useless tool. Explicit code is also useful. It's certainly possible to code large systems in pure tacit form. But I wouldn't go there unless I felt that the consequent obfuscation was a value add for my context. That said, I do understand the gut feeling that a simple data pipeline ought to have a simple tacit representation. Thanks, -- Raul On Thu, Jul 9, 2020 at 8:07 AM Julian Fondren <jfond...@minimaltype.com> wrote: > > On 2020-07-09 06:27, Raul Miller wrote: > > I don't know what you would use this for, though, so probably it could > > have a better name. > > It just comes up in normal code that you have a non-tacit train > of monadic verbs. To pick one at random: > > echo # ucp 'こんにちは' > > And generalizing these into an explicit verb is very clean: > > cpoints =: 3 : 'echo # ucp y' > > But this not the case with a tacit verb: > > cpoints =: [: echo [: # [: ucp > cpoints =: echo @: # @: ucp > > However you do it you introduce a lot of visual noise that's > completely absent in the original code. > > So I don't think there's a particular use-case for atred, > rather there's a feeling of frustration with the outcome of > making some code tacit. > > > I'd guess that a better solution is just 13 : > > Here are some uses of that in J packages: > > demos/wdplot/pledit.ijs > > getfontsz=: 13 : '{.1{._1 -.~ _1 ". y' > > demos/isigraph/isedit.ijs > > getfontsize=. 13 : '{.1{._1 -.~ _1 ". y' > > games/bagofnouns/bagofnounsgui.ijs > > crlftolf =: 13 : '(-. (CR,LF) E. y) # y' > lflftolf =: 13 : '(-. (LF,LF) E. y) # y' > > general/misc/pack.ijs > > pget=: 13 : '> {: y {~ ({."1 y) i. {. boxopen,x' > psel=: 13 : 'y {~ ({."1 y) i. ;: ::] x' > > misc/miscutils/utils.ijs > > tod =: 13 : '6!:0 y' > todhms =: 13 : '3 }. tod y' > todymd =: 13 : '3 {. <. tod y' > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm