Did You Know - Rare programming language feature

Published: 26 May 2020
on channel: 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


Watch video Did You Know - Rare programming language feature online without registration, duration hours minute second in high quality. This video was added by user V. K. 26 May 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 435 once and liked it 11 people.