I for little functions use line number as label, in one editor show them and goto instruction in the form "-->Nline x i condition" and if instruction in the form "-->Nline x i ~ condition"
and + use indentation but in codegolf is not showed..
I find :if :for etc not fit well ... Possible I see the things too much near as in microscope , even not see code use extensive that , possible I have too much different experience in using goto label and jump in assembly
@Adám the "-->2xiw>c" in the last line has to be intended as the previous line because it is in the loop; iota in the last line... Yes if w>c the result is 1 goto 2; if it is 0 than goto 0 , goto exit... But when goto I would prefer one only form always the same, so I prefer the other... Yes for codegolf is not ok...
I read ⋄→3×⍳∼0πv←1+3×y×1+y⋄r←v "if that v is prime follow the line" ; →0×⍳w≤c+←1 if w<=c (after increment c) goto 0 ... Yes I would golf y+<--1 merge in the follow instruction
@Ven Because FP prohibits side effects, so if you're not assigning anything, it means that this is the result. However, people frequently abuse dfns for non-FP, so it would have been nice to not have to make dummy assignments.
It doesn't prohibit side effects -- they just are a value type too :) (and that's in Haskell, Scala/Ocaml/... care much less about that bit. You're right tho)
@ngn Not fair. It isn't worship of backwards compatibility, but rather a concern for the employees that need to be fed by income stemming from existing applications.
@ngn You really don't understand that‽ Our customers have hundreds of thousands of lines of code. If we change the behaviour of existing language features, that code may break.
@Adám "dear locked-in customers, this is a breaking change we're gonna make in the next major version, please rerun your tests and change your code accordingly. we're sorry, that syntax was an old mistake. now it's gone" - done :)
it depends on what language feature you're fixing, of course, but i suspect in most cases the cost of fixing your customers' code (even if you have to pay for it) would be less than supporting early mistakes indefinitely
@ngn "Dear patient that got wrong medication, your medical journal system is now based on software that is more beautiful from a language design perspective."
@Adám i understand your desire to justify whatever dyalog happens to be doing now, but i also suspect you would never design it like that if you were starting from scratch
@ngn I see positive and negative aspects of both tradfns and dfns. I'd prefer one unified function system with the upsides of both, and without the downsides of any.
@J.Sallé You can't force more precision than ⎕FR←1287 will give you, but you can ask for any number of decimals with dyadic ⍕ and it will mark unknown digits with _.
@J.Sallé In a better world, we'd use base-8, and there's a direct formula for the Nth digit of pi in base-8. Unfortunately, for conversion to base-10, you need to know all the previous digits.