LoginSignup
1
2

More than 5 years have passed since last update.

comment > @spec > -spec

Last updated at Posted at 2015-11-25

@specというコメント記載について以下を見つけた。

注意:これは古い書き方です。最新のErlangでは、この下に書いた-spec(~)に対応していますので、そちらが良いと思います。
...
一応コメント中の@specもドキュメント化されますが、-spec()を使う事でTypErによる実際の型チェックに役立てる事ができます。

あとで、「こちらの方がいいよ」というのが出てくるのが往々にしてある。その際にはこれまでの使用を天秤にかけて、新しい方法を取り入れるかどうかはよく考える必要がある。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2