[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

syntax difference

From: Steven D'Aprano <steve+comp.lang.python at pearwood.info>

On Sun, 24 Jun 2018 19:37:33 +0100, Bart wrote:

> I want to program in /my/ style

Python is not Java, and Java is not Python either. Nor is it "Bart's Language",
 or C, or Forth, or Lisp, or bash.



To get the best out of any language, you should try to program to its
strengths, in the idioms that work, not insist on writing FooLanguage code in

Hammers are great tools. So are screwdrivers. But you wouldn't use a
screwdriver to hammer nails, or hammer screws, would you?

You'd probably be pretty frustrated if one of your users (ahem) insisted on
duplicating the form and structure of their bash scripts in your language, and
complaining bitterly about how your language sucks because it isn't bash.

Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing it everywhere."
 -- Jon Ronson

--- BBBS/Li6 v4.10 Toy-3
 * Origin: Prism bbs (1:261/38)