The worst #Scala LOC ever written!

preview_player
Показать описание


Cheers and Happy Coding!

#shorts #scala3 #programming
Рекомендации по теме
Комментарии
Автор

implicit var string: Option[String] = null

МихаилЧугунков-мж
Автор

I once had to review a 370+ character line of code that took an Option[Option[Either[Int, Int]]] with Some(null) and Some(None) having different expected outcomes...

puffinbasher
Автор

Found this in a project of mine:

package object file {
/**
* This allows users to pass a [[File]] object when a [[String]] is needed.
* This might not be the safest implicit conversion, but I don't really care.
*/
implicit def file2String(file: File): String = file.getAbsolutePath
}

GershonBenYitzhak
Автор

The topic covered in your Short is not explicit enough for me to see the issue with the implicit, I must say :) hehe

igf