|
Which is why it's real nice when your mostly-functional language also has concise facilities for iteration and mutation.
|
# ¿ Jul 20, 2015 16:07 |
|
|
# ¿ May 1, 2024 15:50 |
|
There's no way around hardcoding an explicit mapping for each Enum value somewhere.
|
# ¿ Sep 17, 2015 18:15 |
|
Lunixnerd posted:I initially thought that maybe scala would be the way to go but it seems that it would be really easy for someone to fall back to writing imperative code in scala. I'm in the camp that considers this a good thing, although I don't know anything about Scala or Clojure specifically.
|
# ¿ Feb 25, 2016 21:18 |
|
Pollyanna posted:So I hear a lot about Lisp's extensibility and metaprogramming capabilities, and how it's good for defining a problem in a language that maps directly to said problem domain. People talk about domain-specific languages and macros and bottom-up programming and "changing the language to suit the problem" which makes it seem a lot more like dark-arts wizardry than a programming language. Not to knock Lisp (I've dabbled, but I'm certainly not one of the enlightened), but before you get too depressed about your failure to ascend, remember that for every beautiful Lisp monument to metaprogramming there are a hundred boring-rear end, non-Lisp programs out there doing work that people rely on as well. For all its glories, it hasn't made itself widely indispensable, and after however many years, "well they all just haven't heard the Good Word!" becomes an excuse and not an explanation. And when I read "Imagine the possibilities if the programmer could modify the abstract syntax tree himself!" the first "possibility" I think of is new heights of unmaintainability.
|
# ¿ May 19, 2016 06:34 |
|
It looks remarkably similar to what happens if you trick the CLR into loading two weakly-named assemblies with the same name side by side.
|
# ¿ Feb 19, 2017 01:57 |
|
|
# ¿ May 1, 2024 15:50 |
|
Serenade posted:That's helpful as hell. This is mostly my plan but I didn't know windowed exists and I was thinking of fold, not reduce. Thanks. F# has pairwise now so you don't need to deal with incomplete pattern matching off the output of windowed
|
# ¿ Mar 27, 2017 03:51 |