News for hackers. Stuff that matters.
Re:What's bad about Julia? by thayne on Monday July 26, 2021 @04:14PM (#27964815)
I also Julia, but agree with all these points.

And I'll add one more:

It is difficult to chain a value through a series of function calls. Meaning you can't do something like `a.b().c().d().e()`. You either have to store intermediate results in variables, call it like `e(d(c(b(a))))` which IMO is less readable, or do something like this:

    a |> x -> b(x) |> x-> c(x) |> x -> d(x) | x -> e(x)
there is some hope of this getting improving in the future, but in the present, it bugs me.
Re:What's bad about Julia? by jakobnissen on Monday July 26, 2021 @04:16PM (#27964839)
OP here. Try using `Transducers`. It has problems of its own, but it does address most of my issues with Julia's iterators, including that one.
Re:What's bad about Julia? by klaff on Monday July 26, 2021 @05:25PM (#27965695)
Why did you write all those anonymous functions? You can just do

  a |> b |> c|> d |> e
although there are style guides that discourage that and instead recommend using a line for each with good temp variable names.
Re:What's bad about Julia? by thayne on Monday July 26, 2021 @06:54PM (#27966495)
ah, in this case that works. although it doesn't if you have additional arguments to b,c,d and e. I guess I should have crafted my example better.
Re:What's bad about Julia? by BadInformatics on Monday July 26, 2021 @07:13PM (#27966653)
https://github.com/jkrumbiegel/Chain.jl would probably work there, but you're not the only one who would like to see this in the language/stdlib itself.