質問するログイン新規登録

質問編集履歴

2

コメント追加

2018/07/26 13:29

投稿

tassi-yuzukko
tassi-yuzukko

スコア10

title CHANGED
File without changes
body CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  ## 自分で考えてみた選択肢
19
19
  ### ① `out` 修飾子を使う
20
- 例えば以下のような感じです。
20
+ 例えば以下のような感じです。なんか手続き型チックで違和感がありますが、一番直?な気もします。
21
21
 
22
22
  ```cs
23
23
  class EmployeeNumber
@@ -36,7 +36,7 @@
36
36
  ```
37
37
 
38
38
  ### ② タプルで返す
39
- 例えば以下のような感じです。
39
+ 例えば以下のような感じです。これも手続き型脳的には素直な気がします。
40
40
 
41
41
  ```cs
42
42
  class EmployeeNumber

1

ソースコード編集

2018/07/26 13:29

投稿

tassi-yuzukko
tassi-yuzukko

スコア10

title CHANGED
File without changes
body CHANGED
@@ -121,6 +121,8 @@
121
121
  domainEvent.Publisher(new DomainEvent<FailedReason>(FailedReason.NotMatchedName));
122
122
  if(誕生日が見つからなかった)
123
123
  domainEvent.Publisher(new DomainEvent<FailedReason>(FailedReason.NotMatchedBirthDay));
124
+
125
+ return 社員番号
124
126
  }
125
127
  ```
126
128