Andrzej Rybczak - User Friendly Optics

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2024
  • Haskell is renowned for its cumbersome record syntax, and it's widely acknowledged that "lenses and prisms help." However, the lens library, the predominant player in this area, is notoriously challenging to grasp, even for seasoned Haskell developers. Introducing an alternative solution that is more user-friendly (and has proven successful in production) is crucial for encouraging newcomers to continue exploring the language while also simplifying the lives of existing Haskell developers.
    The talk will highlight the optics library (github.com/wel....
    Andrzej Rybczak will cover:
    How it separates implementation details from the user-facing API.
    How its API differs from that provided by the lens library (while still matching its power).
    Why it's significant for Haskell developers who are new to the concept of optics.
    He'll also explain how optics effectively addresses the infamous Haskell record problem in a satisfactory manner (with the assistance of the OverloadedLabels extension) and clarify why this approach doesn't compete with the upcoming RecordDotSyntax extension but rather complements it.

ความคิดเห็น • 1

  • @phillemann
    @phillemann หลายเดือนก่อน

    Very nice presentation. It's vital to see the exact differences between lens and optics to really drive the point home, and not just handwave it.