It’s time for some more Haskell. I’m going to work through chapter 2 of Exercises for Programmers: 57 Challenges to Develop Your Coding Skills and see what happens.
Saying Hello Create a program that prompts for your name and prints a greeting using your name.
Constraints: Keep the input, string concatenation, and output separate.
import System.IO main = do hSetBuffering stdout NoBuffering hSetBuffering stdin NoBuffering putStr ("What is your name?
I’ve been reading about functional programming lately, and I want to learn a new language to try it out properly. I picked Haskell for a few reasons. First, it’s touted as a pure functional language, and that appeals to me because I want to learn functional programming in particular, and not have the concepts blurred by a hybrid language. Second, there’s a lot of good online resources that I can learn from.