this post was submitted on 21 Aug 2025
47 points (91.2% liked)

Technology

74440 readers
2529 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] FishFace@lemmy.world 4 points 4 days ago (1 children)

I dunno, did we?

Screenshot from the post

I think rust's iterator chains are nice, and IDE auto-complete is part of that niceness. But comprehension expressions read very naturally to me, more so than iterator chains.

I mean, how many python programmers don't even type hint their code, and so won't get (accurate) auto-complete anyway? Auto-completion is nice but just not the be-all and end-all.

[–] squaresinger@lemmy.world 1 points 4 days ago (1 children)

Fair, I missed one word. You missed the whole blog post.

It's a big difference between writing code and writin APIs, tbh. If you write crap code that's your problem. If you write crap APIs it's the problem of anyone using your API.

[–] FishFace@lemmy.world 1 points 4 days ago

The blog post is really about language design, because you definitely should not write a filter method for your custom iterable class in python; you should make it use the language's interface's for "being an iterable". Language design involves APIs offered by the language, but isn't really the purview of most people who write APIs.

If a suggestion on language design would gain something at the cost of readability, anyone should be very skeptical of that.

Those things together explain why I am evaluating the post mostly in terms of readability.