Replies: 1 comment 1 reply
-
|
Hi, amazing insight! The way Julia handles arguments is, in fact, one of the pillars that allows broadcasting and multiple dispatch to work so well together. In Python, the flexibility of calling positionals as keywords ends up generating unnecessary coupling with the internal names of variables. Julia sacrifices this 'freedom' in exchange for consistency and performance. Welcome to the team of those who appreciate the language's design! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Recently I have been feeling more and more ways to realise that julia is well designed. One instance of this is when I realized something about keyword arguments, and why non keyword arguments are unmentionable in function calls. I mean:
In python:
Julia takes a clear stance on this, the reason for this to me, even still, was only partially motivated, until today when I found myself thinking about broadcasting over keyword arguments.
The docs mentioned this:
I don't have a use-case for broadcasting over keyword arguments, but
Could someone kindly clarify, I am just curious about both of the decisions and if there is any connection between both of these design choices?
Beta Was this translation helpful? Give feedback.
All reactions