Re:Guido was right, there should be no lambda in Python (2018)
by TheRealPomax on Tuesday September 27, 2022 @09:23PM
(#33003252)
I think this is a dangerous assumptions to make: the last time I looked at C was 30 years ago, you show me real C code with pointers and references and namespaces and I couldn't tell you wtf was going on if my life depended on it.
With a few weeks of study to "re"learn C and/or C++? Sure, they're just programming languages. But right off the bat? No idea what the hell is going on in real, production C code.
Re:Guido was right, there should be no lambda in Python (2018)
by Entinel on Tuesday September 27, 2022 @09:35PM
(#33003321)
This is my point though. People just complain about whatever syntax they aren't used to using but none of them are inherently more difficult to read.
Re:Guido was right, there should be no lambda in Python (2018)
by TheRealPomax on Tuesday September 27, 2022 @09:54PM
(#33003428)
None of them are inherently more difficult to _learn_ but they sure as hell are more difficult to read when everything's peppered with :: and * and &.
Re:Guido was right, there should be no lambda in Python (2018)
by Entinel on Tuesday September 27, 2022 @10:22PM
(#33003571)
That's a matter of opinion and one I disagree with.
Re:Guido was right, there should be no lambda in Python (2018)
by thrown_22 on Tuesday September 27, 2022 @10:55PM
(#33003782)
The problem of working C code isn't the syntax, it's the semantics.
Casting pointers isn't difficult to read because dereference and multiplication share *, it's difficult to understand because it's not something you do outside of C.
Re:Guido was right, there should be no lambda in Python (2018)
by skywhopper on Wednesday September 28, 2022 @08:28AM
(#33007115)
Maybe you don’t.
Almost all programmers can read a C-like language because well, that covers like 95% of languages by use. You have C/C++/Java/Go/JS/Kotlin/Rust/zig/C# etc.
BUT second to that in sheer use is probably Python. Almost everyone (that I know) has touched it atleast a bit whether its dev scripts, tooling, scientific work (bio, cv, etc.), robotics, mech engineers, ml/ai space etc.
Why would anyone nitpick to death tools that have so much ubiquity? Well they'd have to have a narrow focus to even consider it. The majority of algebra users never second guess +, *, ^, (), etc.
I'd say lisp is probably the hardest to get used to combine with the least frequent to cross your path. And then there's a long tail of bash/ruby styles, tcl, ocaml, etc etc.