Max(a,b) と CopyFile(a,b) は同じ2つの引数を取る関数だが後者は引数に意味合いがあるし順も重要。メソッドにする事で分かりよく出来る。

mattnmattn のブックマーク 2019/09/25 10:22

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Be wary of functions which take several parameters of the same type | Dave Cheney

    APIs should be easy to use and hard to misuse. — Josh Bloch A good example of a simple looking, but hard to use correctly, API is one which takes two or more parameters of the same type. Let’s comp...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう