-
chibochibo03
- 3150
- 3
- 0
- 0
![](https://s.togetter.com/static/web/img/placeholder.gif)
僕はマクロにまったく抵抗ないのだけど、マクロ大っ嫌いな人とかいるよね #渋谷java
2016-10-01 15:43:34![](https://s.togetter.com/static/web/img/placeholder.gif)
Macroのユースケース。バリデーション、型の動的生成、DSL、最適化。これらをコンパイル時に行う #渋谷java
2016-10-01 15:44:35![](https://s.togetter.com/static/web/img/placeholder.gif)
ScalaのquasiquoteはLispのsyntax quoteに近い雰囲気? docs.scala-lang.org/overviews/quas… #渋谷java
2016-10-01 15:49:14![](https://s.togetter.com/static/web/img/placeholder.gif)
書き方 下に行くほど書きやすい - AST モデル……文字列リテラルの生成くらい - reify……テンプレートみたいな感じ - Quasiquutes #渋谷java
2016-10-01 15:49:15![](https://s.togetter.com/static/web/img/placeholder.gif)
Listやrustなど表現力が高い言語では、マクロをサポートしていること多いので、Let’s macro!! #渋谷java
2016-10-01 15:50:11![](https://s.togetter.com/static/web/img/placeholder.gif)
[YokohamaUnit](github.com/tkob/yokohamau…) ソースから直接(javacを経由せず)バイトコードを生成……行番号表示のため JUnitのテストランナーで実行……Jenkinsに乗せるため #渋谷java
2016-10-01 15:54:35![](https://s.togetter.com/static/web/img/placeholder.gif)
assertThat()のカッコがノイズ。訓練されたLisperには見えないのかもしれない。 #渋谷java #渋谷java
2016-10-01 15:54:56![](https://s.togetter.com/static/web/img/placeholder.gif)
英語として読めるようなassertionを書く、ということでassertThat、なんで間にスペースがないんですか?is(・・・)はなんでカッコがあるんですか?おもしろい #渋谷java
2016-10-01 15:56:42