←back to thread

498 points azhenley | 2 comments | | HN request time: 0.498s | source
1. halo ◴[] No.45769795[source]
On a similar note, I’ve always liked the idea of being able to mark functions as pure (for some reasonable definition of pure).

The principle of reducing state changes and side-effects feels a good one.

replies(1): >>45770558 #
2. jlmcgraw ◴[] No.45770558[source]
For what it's worth, I was experimenting with this idea for Python (in an almost completely vibe-coded fashion) here: https://github.com/jlmcgraw/pure-function-decorators

Whether it's of any actual utility is debatable