5 ms·
Light on syntax? Python? Oh, you mean light on symbols in the syntax. Python has a ridiculous mess of syntax, but it's mostly in the form of words.
by chowells 6y ago
Light on syntax? Python?
Oh, you mean light on symbols in the syntax. Python has a ridiculous mess of syntax, but it's mostly in the form of words.
- dragonwriter 6y agoPython is quite light on syntax compared to several other scripting languages (Ruby and Perl/Raku come to mind.)
- DonHopkins 6y agoPython has syntactic sugar, but Perl has syntactic syrup of ipecac. https://en.wikipedia.org/wiki/Syrup_of_ipecac https://en.wikipedia.org/wiki/Syrup_of_ipecac
- fennecfoxen 6y agoSometimes the Perl sugar is pretty sweet, though. my %h1 = ("xyz" => 2); my %h2 = ("abc" => 9, "def" => 3); # hashmap from Hash::MostUtils my %hash = hashmap { "$b-$a" => $a * $b } %h1, %h2, "eieio" => 0, "abc" => 1; # "0-eieio" => "", # "1-abc" -> "abc" # "2-xyz" => "xyzxyz" # "3-def" => "defdefdef"