You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -221,16 +221,16 @@ So, we act accordingly!
221
221
222
222
## Maybe container
223
223
224
-
Have you ever since code with a lot of `if some is not None` conditions?
225
-
It really bloats your source code and makes it unreadable.
224
+
`None` is called the [worst mistake in the history of Computer Science](https://www.infoq.com/presentations/Null-References-The-Billion-Dollar-Mistake-Tony-Hoare/).
226
225
227
-
But, having `None` in your source code is even worth.
228
-
Actually, `None` is called the [worth mistake in the history of Computer Science](https://www.infoq.com/presentations/Null-References-The-Billion-Dollar-Mistake-Tony-Hoare/).
226
+
So, what can we do?
227
+
You can use `Optional` and write a lot of `if some is not None` conditions.
228
+
But, having them here and there makes your code unreadable.
229
229
230
-
So, what to do?
231
-
Use [Maybe](https://returns.readthedocs.io/en/latest/pages/maybe.html) container!
0 commit comments