News for hackers. Stuff that matters.
Re:Swift for TensorFlow Shuts Down by jodrellblank on Saturday February 13, 2021 @03:26PM (#26126489)
That's not a particularly convincing blogpost - for example you don't need square brackets for indexing, one of Ken Iverson's changes going from APL to J was to see indexing as just another function application and remove square bracket syntax from it. Grouping arithmetic expression is worsened by complex precedence rules, APL always evaluating right-to-left and all operators having the same precendence changes how that works as well (even though it does have grouping parens too). Then complaining that "<>" are used in mathematical expression, but not being annoyed by "main()" in a function declaration or the "?" and ":" used in the complex type expression?

Seems to me that "end" is one of the worse available choices; if we're going for keywords, why not make them "endif", "endfor", "endwhile" (or "wend") which makes it explicitly clear what each of:

        end
      end
    end
is ending.
Re:Swift for TensorFlow Shuts Down by int_19h on Saturday February 13, 2021 @09:54PM (#26129235)
Because it doesn't really help as soon as you get repeated nesting, which isn't all that uncommon.