---
title: "Discussion on \"A Functional Programming Language\" | Hashnode"
description: "Discussion on \"A Functional Programming Language\". A fun experiment on a lazy Sunday afternoon."
url: "https://hashnode.com/posts/a-functional-programming-language/65f84f773ff45631c065437f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A Functional Programming Language](https://karlhepler.com/a-functional-programming-language?utm_source=hashnode&utm_medium=feed)

A fun experiment on a lazy Sunday afternoon.

Mar 18, 2024 · 8 min read · karlhepler.com  
Read the article

-   [#functional-programming](https://hashnode.com/tag/functional-programming)
-   [#fun](https://hashnode.com/tag/fun)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)

## Written by

[Karl Hepler](https://hashnode.com/@karlhepler)

@karlhepler · Cary, NC

  
[View profile](https://hashnode.com/@karlhepler)

## Responses 3

Markdown supported · ⌘↵ to post

[Jarrod Roberson](https://hashnode.com/@JarrodRoberson)

[Mar 21, 2024](https://hashnode.com/posts/a-functional-programming-language/65f84f773ff45631c065437f/comment/65fc4cbd479589fd25ee4e61)

this suffers from the same thing that all "terse" languages like this does; it becomes an impenetrable obfuscated mess to untangle for anything that is not trivial.

RegEx, List Comprehensions, etc all suffer from the same thing. A human can only hold so much "state" in their brain. Making languages that are this terse impossible to read and reason about without an extreme amount of effort.

Your last example is proof of this and you imply the same thing saying you had to solve it with pencil and paper to verify it works.

[Karl Hepler](https://hashnode.com/@karlhepler)

[Mar 21, 2024](https://hashnode.com/posts/a-functional-programming-language/65f84f773ff45631c065437f/comment/65fc4cbd479589fd25ee4e61#reply-65fc67baff212608cdf0967c)

You are absolutely right!

The pencil and paper exercise was primarily to step through the recursive steps and check that things would unwrap as I expected, given that I don't have a compiler. Secondarily, it was fun. Or maybe it was the other way around?

[Jarrod Roberson](https://hashnode.com/@JarrodRoberson)

[Mar 21, 2024](https://hashnode.com/posts/a-functional-programming-language/65f84f773ff45631c065437f/comment/65fc4cbd479589fd25ee4e61#reply-65fc7600b10979fc859a3706)

[Karl Hepler](https://hashnode.com/@karlhepler) it is a nice exercise and would make a nice "domain specific language" approach for sure.

[DAZ](https://hashnode.com/@daz-codes)

[Mar 19, 2024](https://hashnode.com/posts/a-functional-programming-language/65f84f773ff45631c065437f/comment/65f9cd586daab2f8557d2db0)

This is brilliant. Exactly how I try to write functions in JavaScript. I love how you assign with arrows which means = can be used for comparison.

[Harish Chand](https://hashnode.com/@harishchand0924)

[Mar 21, 2024](https://hashnode.com/posts/a-functional-programming-language/65f84f773ff45631c065437f/comment/65f9cd586daab2f8557d2db0#reply-65fc3242cb6aee3be5714712)

Hi

[Reece Poulsen](https://hashnode.com/@reecepoulsen)

[Mar 19, 2024](https://hashnode.com/posts/a-functional-programming-language/65f84f773ff45631c065437f/comment/65f98a0055f835987e6e40af)

This is great! You practically just created a language that I love to use called Erlang, you should check it out here [erlang.org/doc/getting\_started/seq\_prog](https://www.erlang.org/doc/getting_started/seq_prog)

It has pattern matching, arrow function definitions, list head/tail slicing, tuples, immutability, recursion instead of loops, and some other things. You practically built it👍

[Karl Hepler](https://hashnode.com/@karlhepler)

[Mar 19, 2024](https://hashnode.com/posts/a-functional-programming-language/65f84f773ff45631c065437f/comment/65f98a0055f835987e6e40af#reply-65f98fdb0c98a2bfed7d127c)

Cool! I have heard a lot about it, but never looked too deeply into it. I'll definitely give it a look now. Thank you!
