phew… I just solved Daily Programmer #399 (which is a very easy programming puzzle, if you’re using a language you’re familiar with) in #Clojure and it was one of the most difficult programming problems I’ve solved in a very long time
my code probably looks terrible if you’re an experienced #Lisp user, but it was the best that I could figure out how to do. I’m especially unhappy with char-to-lowercase and how many layers of indentation I needed to do something so simple
here’s my solution: https://pastebin.com/u8kcTd5c
I’m starting to think that maybe learning C# would be better than this, or maybe a functional language that isn’t a Lisp dialect 😅
@kasdeya our opinion of C# is that it's mostly pretty good
there are some weird edge cases, and it's not our favorite, but there are far worse options
@kasdeya if you're okay with a .NET language, then can I recommend F#? I haven't used it almost at all myself, but what I have seen is *very* appealing to me as a functional programmer. I'm mostly exposed to it via Scott Wlashin's website and book.
@liese oohh F# looks really cool, based on what I’m seeing on the website. the syntax is so refreshingly normal - especially compared to Lisp or something like Haskell lol. I’m really thinking about giving this a try. also I really like that it has the pipeline operator (|>). ever since I first heard about it I’ve wanted it in every language that I use, but I’ve never actually used a language that has it