The Death of Tagless Final by John A. De Goes

The Death of Tagless Final by John A. De Goes


3050 , 4.85 , #Death #Tagless #Final #John

Final tagless. The topic strikes fear into the hearts of Scala developers everywhere—and not without reason. Final tagless allows developers to build composable Domain Specific Languages (DSLs) that model interaction with the outside world. Programs written using the final tagless style can be tested deterministically and reasoned about at compile-time. Yet the technique requires confusing, compiler-choking higher-kinded types, like `F[_]`, and pervasive, non-inferable context bounds like `F[_]: Concurrent: Console: Logging`. Many have looked at final tagless and wondered if all the layers of complexity and ceremony are really worth the benefits.

In this presentation, John A. De Goes provides a gentle and accessible introduction to final tagless, explaining what it is and the problem it intends to solve. John shows that while final tagless is easier to use than free monads, the technique suffers from a litany of drawbacks that push developers away from functional programming in Scala. John then introduces a novel approach that shares some of the benefits of final tagless, but which is idiomatic Scala, easy to explain, doesn’t need any complex type machinery, provides flawless type inference, and works beautifully across Scala 2.x and Scala 3.

Come join John for an evening of fun as you learn how to write functional code in Scala that’s easy to test and easy to reason about—all without the complexity of free monads or final tagless.

Nguồn: https://duhochoaky.edu.vn/

Xem thêm các Video Thủ tục du học khác tại: https://duhochoaky.edu.vn/thu-tuc-du-hoc

Ziverge

4 bình luận trong “The Death of Tagless Final by John A. De Goes

  1. Question related with Implicit Parameter List (Everything),
    How about "modules" that Gabriel explained, adding all dependencies in respective modules and provide the related modules required by the function. Wouldn't decrease that implicit parameter list and make it close to Everything ?

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *