Did You Know - Rare programming language feature

Опубликовано: 26 Май 2020
на канале: V. K.
435
11

🔔 Subscribe to be notified for new videos ➡️ https://bit.ly/2IshK7H 🔔

Mutual Recursion (js, c, python, php, bash, go).

In this video you'll find info about mutual recursion and will see how it works for all popular programming languages (JavaScript ,Clang ,Python ,PHP ,Bash ,Golang).

Recursion - when function A calls function A (itself).
Mutual recursion - when function A calls function B, and function B calls function A.
You can find all code examples here: https://gist.github.com/cn0047/0070f3...
Moreover you can find additional examples not mentioned in video: ruby, rust and scala here:
https://gist.github.com/cn0047/0070f3...

Used versions:
js - node v13.0.1
c - gcc 4.2.1
python - python 3.7.7
php - php 7.3.11
ruby - ruby 2.6.3p62
rust - rustc 1.40.0
scala - scala 2.13.2
sh - GNU bash, version 3.2.57(1)-release
go - go version go1.13.4

DISCLAIMER:
This video was created for educational purposes to provide understanding how things work internally on programming language level.
Even you're using golang - be careful and think twice before using it!
MOREOVER: If you're using mutual recursion in real world project - you're probably doing something wrong and please think one more time about correctness of your program design .

#recursion #mutualrecursion #programming

FOLLOW @cn0047
GitHub: https://github.com/cn0047


Смотрите видео Did You Know - Rare programming language feature онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь V. K. 26 Май 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 435 раз и оно понравилось 11 людям.