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.
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.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.
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:
there is some hope of this getting improving in the future, but in the present, it bugs me.