Talk:McNuggets problem: Difference between revisions

Content added Content deleted
(Python)
Line 22: Line 22:


==Improve tag on Python entry==
==Improve tag on Python entry==
I added an improve tag on the Python entry
I added an improve tag on the Python entry as it does not look or read like idiomatic Python. To avoid an edit war I will sate my reasons:

# Commented type annotations read like those from a different programming language.
# Use of map/filter over comprehensions.
# Use of trivial functions: fst, id, _not, snd, swap
# Overwriting a builtin name: id
# main() without `if __name__ == "__main__"`
# Shares structure and naming with examples from other languages.

It reads like a translation from another language and RC is about idiomatic code. [[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 07:14, 26 October 2018 (UTC)