A Lisp-like lightweight functional language on .NET.
This slide contains how to generate expressions from Nesp parser.
ML茶氏 #2 https://ml-lang.connpass.com/event/58151/
https://github.com/kekyo/Nesp
A Lisp-like lightweight functional language on .NET.
This slide contains how to generate expressions from Nesp parser.
ML茶氏 #2 https://ml-lang.connpass.com/event/58151/
https://github.com/kekyo/Nesp
This document discusses different patterns for handling auto-generated code in projects. It compares the Butter Knife and Dagger patterns, which either hide generated codes or do not use reflection, respectively. The author recommends the Dagger pattern as it does not require developers to learn naming rules of generated classes or add complex proguard configurations. Hiding generated code can cause issues if class names change, while not using reflection avoids errors and makes the library easier to use for developers.
14. 2?1. sealed class
// BTreeNode.kt
// 屈蛍直
sealed class BTreeNode {
// ~
data class Leaf(
val data: Int
): BTreeNode()
// 乢
data class Branch(
val left: BTreeNode,
val right: BTreeNode
): BTreeNode()
}
// OtherFile.kt
// ◎これはコンパイルエラ`になる
// class OutOfTree(): BTreeNode()