Functional SQL in Pure Python

I've published a framework for doing SQL-like programming in Pure Python -- no database required.

Here: https://github.com/slott56/functional-SQL. See the functional-SQL documentation.

This allows us to transform SQL:

SELECT n.name, v.c2
FROM names_table n, values_table v
WHERE n.code = v.c1

To pure Python:

Select(name …
more ...


any() and all() and Identity Elements

This was a surprising thing (for me) to see. Surprising because -- after writing a book about functional programming, I'd forgotten that some of the ideas are actually really new to people.

(I've omitted the source of the quote because I want to reuse this without worrying about link rot. Some …

more ...



Python exceptions considered an anti-pattern

https://sobolevn.me/2019/02/python-exceptions-considered-an-antipattern While eloquent and thorough, I remain unconvinced that this is a significant improvement over try/except. It's common enough in some functional languages to have strong support and a long, successful history. I think it replaces one problem with another. It's not a "solution …

more ...