Programming/Polyglot Problems

From etwiki
Revision as of 18:20, 1 February 2021 by WikiSysop (talk | contribs) (Created page with "''Have you ever gotten syntax errors because you know how to do the thing in one language but can't remember how to do that the other one?'' {| !Java !C# !Python !Ruby |- |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Have you ever gotten syntax errors because you know how to do the thing in one language but can't remember how to do that the other one?

Java C# Python Ruby
def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass
if condition
  do_thing
elsif
  do_other_thing
else
  do_else_thing
end