3 ms·
It’s also a thing in Rust and other functional languages such as Haskell, Scala
by srcreigh 4y ago
It’s also a thing in Rust and other functional languages such as Haskell, Scala
- ravi-delia 4y agoAbsolutely, but not in dynamic languages. Elixir (well, and Erlang) and Ruby are the only non-lisp dynamic languages I'm aware of with the feature. It's not the only thing I like, but it's a major component of the "functionalish" features that I really like and mostly see attached to static functional languages. Rust is fairly mainstream, and I think a step in the right direction. Honestly I suspect that many people who like Rust actually just like a fast systems language with niceties like implicit return and iterators.
- weaksauce 4y agorust is interesting but also a decent amount of ruby folk went to rust... i have no clue if they were part of the building of rust or not but the bundler people went to rust and made the package manager for rust too. the OP was talking about dynamic languages... haskell and scala are not too surprising that they have implicit returns since they are functional paradigms foremost.
- culebron21 4y agoJulia has it as well.
- ravi-delia 4y agoI hear Julia is quite lisp-y in general, so that makes sense. I've been meaning to get around to it regardless- it seems like it could be a lot more ergonomic than relying on numpy.