r/ProgrammingLanguages • u/baehyunsol Sodigy • Jul 29 '26
Purely functional language with impure script language?
I'm working on a purely functional programming language named Sodigy. It's all about evaluating values, not "executing commands one by one".
It's nice when writing libraries, but it's not easy to write a main function. The main function is supposed to execute commands, but the Sodigy's syntax is not friendly to write a list of commands.
So what I'm trying to do is, 1) Sodigy remains purely functional and 2) add a bash-like script language. The script language can call Sodigy functions. Instead of writing a main function in Sodigy, you write sodigy-script and execute the script.
Has anyone tried similar approach? I'm not sure whether it's a good idea or not...
View all comments
Show parent comment
1
u/Apart_Ebb_9867 Jul 29 '26 edited Jul 29 '26
Most libraries have alternatives to operators. Even the operator-heavy libraries like lenses have words.
But libraries shouldn’t be something you throw in just for fun, if they solve a real problem, learning a few operators is not the end of the world. Where it becomes annoying is when reading other people’s code and there’s no solution to that, other than maybe ask an llm to replace operators with functions or explain the code to you.