3 Tricks with Call-by-Name in Scala | Rock the JVM

Описание к видео 3 Tricks with Call-by-Name in Scala | Rock the JVM

Written form to keep for later: https://blog.rockthejvm.com/3-tricks-...

This video is for Scala programmers of all levels

In this video I'll talk about the Call-by-Name argument passing mechanism in Scala and why on Earth it might be useful. I'll then give my favorite 3 uses of call-by-name: reevaluation, infinite collections with a pattern called Call-by-Need, and evaluation delay combined with Scala's curly brace syntax. With CBN, you'll be able to design APIs that, when used, will seem like they are part of the language itself.

Follow Rock the JVM on:

  / rockthejvm  
  / rockthejvm  

-------------------------------------------------------------------------
Home: https://rockthejvm.com
-------------------------------------------------------------------------

Комментарии

Информация по комментариям в разработке