Тёмный

Which to use? and/or vs &&/||  

German Velasco
Подписаться 1,5 тыс.
Просмотров 545
50% 1

When people come to Elixir, I often hear them ask which they should use: and/or OR &&/||? Sometimes they behave the same way, but they're not the same. Here are some useful things about them and some differences.
For more videos like this, check out ElixirStreams.com

Наука

Опубликовано:

 

2 апр 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@thehibbi
@thehibbi 2 месяца назад
I love these short tips, thanks :)
@germanvelasco
@germanvelasco 2 месяца назад
Glad to hear it! 🥳
@mythrando
@mythrando 2 месяца назад
Nice video. Love how concise and clear it is!
@germanvelasco
@germanvelasco 2 месяца назад
Thanks! Glad to hear it.
@akaibukai
@akaibukai 2 месяца назад
Hi German! Thanks for the videos.. Just watched your DDD talk and it was so spot on! And I came here from your Elixir Streams Blog. (Side not, can you add the publishing date of your posts, just to have a sense of when you released them.. E.g. I clicked the video just to see it was posted a day ago!.. Anyway.. Keep up the good work!)
@germanvelasco
@germanvelasco 21 день назад
Awesome, thank you!
@elixiradolfont
@elixiradolfont 22 дня назад
Great video. Great examples. A minor mistake: 3:00 You said: "or is expecting booleans on both the left and the right hand side and the same is true of and" But that's not true. When the first value is a boolean, the second can be a non boolean. iex(1)> true and 1 1 iex(2)> false or 2 2
@germanvelasco
@germanvelasco 21 день назад
Yeah, thanks for mentioning that. I realized that after the recording. Couldn't fix the video without re-recording, but I added a note about that at the bottom of the video notes in Elixir Streams -> www.elixirstreams.com/tips/and-or-vs-&&-comparison
Далее
5 Useful F-String Tricks In Python
10:02
Просмотров 267 тыс.
MEGA BOXES ARE BACK!!!
08:53
Просмотров 32 млн
5 Useful Dunder Methods In Python
16:10
Просмотров 53 тыс.
Dear Functional Bros
16:50
Просмотров 468 тыс.
All Rust string types explained
22:13
Просмотров 150 тыс.
5 More Useful F-String Tricks In Python
9:38
Просмотров 42 тыс.
Functions vs Classes: When to Use Which and Why?
10:49
Просмотров 143 тыс.
Rust is not a faster horse
11:37
Просмотров 319 тыс.
Rust Demystified 🪄 Simplifying The Toughest Parts
14:05
Какой ПК нужен для Escape From Tarkov?
0:48
Игровой Комп с Авито за 4500р
1:00