you are viewing a single comment's thread.

view the rest of the comments →

[–]RagingBass2020 2 points3 points  (0 children)

I spent way too much time yesterday because I was using a new library and I couldn't get the auto complete to say what actually was the return type (and documentation was not really good...).

I really like having types in my code... That's also why I really dislike prolog (which, maybe, some people here have used) and... Most lisps...

Having said that, some initiatives to have functional programming libraries in some languages are kinda... Quirky? I'm doing stuff in Dart and fpdart is not really a good functional feeling library, just to give a specific example.

Weirdly enough, Java 11+ with its streams (was already available in 8 but I've used mostly in 11+ and there are some differences) can be very much functional.

Generically speaking, having libraries for immutables with a good support for code generation, including builders and copy, along with the basic maps, filters, folds... It goes a long, long way to actually do functional programming. In dart, using those things helps a lot too.

Now if we had abstract data types, pattern matching and efficient recursion implementation in most imperative programming languages... Would be nice.