Talk:Vocabulary/atdot

From J Wiki
Jump to navigation Jump to search

I have always used "[" to separate argument from rank number. It seems to me to be more intuitive that the argument is fed to the function on its left. Since "]" works it could be left in, but I think that in terms of explanation "[" is better. Thoughts? Bob Therriault (talk) 17:39, 7 March 2023 (UTC)

I disagree. [ means "pass the left argument through to the result." When the user sees [, they should look to the left of [ to see what the result will be. Here they see a verb, and realize they've been fooled, because monad [, unlike dyad [, preserves the right argument. IMO ] is clearer. Use [ for multiple assignments: a =. 1 [ b =: 5 where the [ indicates that a right argument is being discarded. Henry Rich (talk) 17:47, 7 March 2023 (UTC)