Hacker GitHub

← All repos

dry-python/returns

View on GitHub ↗ ★ 4,387 Python

Make your functions return something meaningful, typed, and safe!

7 mentions on Hacker News by 7 people: 3 stories, 4 comments · first 2020-02-03 · latest 2024-02-19

Mentions per year 7 mentions · busiest year 2020 (3)
20082026
  1. ▲ 12
    Python Functional Programming with returns library (type-safety, monads, etc.)
    story by behnamoh · 2024-02-19 · 3 comments
  2. …).bind_optional( # And so on! lambda credit: choose_discount(credit) if credit > 0 else None, ) https://github.com/dry-python/returns#maybe-container You can decide for yourself what is more readable: all these lambdas or the `None and…
  3. …interested in learning new Python tricks. One of the repos that I found interesting recently is https://github.com/dry-python/returns
  4. …otherwise impossible to get, without runtime inspections. 0: https://github.com/dry-python 1: https://github.com/dry-python/returns
  5. ▲ 145
    Functional Programming in Python
    story by bearzoo · 2020-05-28 · 62 comments
  6. …business otherwise can? There is no escape at the code level, only at the organization level. [1] https://github.com/dry-python/returns
    comment by yowlingcat · 2020-03-14 · in Do not log
  7. ▲ 2
    Show HN: Dry-Python/returns 0.13 – typed Reader and IOResult monads
    story by sobolevn · 2020-02-03 · 0 comments