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. …).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…
  2. …interested in learning new Python tricks. One of the repos that I found interesting recently is https://github.com/dry-python/returns
  3. …otherwise impossible to get, without runtime inspections. 0: https://github.com/dry-python 1: https://github.com/dry-python/returns
  4. …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