Julia is built around multiple dispatch - when making a call, the method to execute is chosen based on the run-time types of all of the arguments. Once this choice has been made, Julia compiles the method, specialised…
I was sure your link to a British comedian was going to be: https://en.wikipedia.org/wiki/Tommy_Cooper
Doesn’t Python’s `import` evaluate code in the same way as Ruby’s `require`?
There is some convention in Python - for example `reverse` and `sort` are mutating, whereas `reversed` and `sorted` are not. However, I don’t know if there is a good reason why the mutating versions are methods and the…
[deleted]
Wouldn’t reddish organic matter just be “red meat”? Or do you consider, for example, lamb to be a type of beef?
> Genuinely curious, what makes Python look more like pseudocode? The use of colons? I used to think it was significant indentation, but if you look at the pseudocode on e.g. Wikipedia, there is no significant…
> I am sure method_missing could be implemented in python using various tricks but nobody, afaik, is doing that. You could probably implement method_missing in Python using either __getattribute__ or __getattr__. I…
IIRC Guido himself is planning on adding a `match` statement to Python.
> how would you showcase an experimental feature to the community? How do other languages do it? Python has the PEP process for discussing design on paper, but I don’t know how they handle experimental implementations.
> I’ll never understand how Python became the more widely appreciated language IMO syntax is a major factor. Python looks like pseudocode, while Ruby looks like Perl.
Did tech “barely exist” when Zuckerberg started Facebook in 2004?
> A guy who [...] wants to be known as the creator of something. I have this problem. I’m frequently distracted from doing what I want to do by ideas for things that I want to have done (and wouldn’t enjoy actually…
Julia is built around multiple dispatch - when making a call, the method to execute is chosen based on the run-time types of all of the arguments. Once this choice has been made, Julia compiles the method, specialised…
I was sure your link to a British comedian was going to be: https://en.wikipedia.org/wiki/Tommy_Cooper
Doesn’t Python’s `import` evaluate code in the same way as Ruby’s `require`?
There is some convention in Python - for example `reverse` and `sort` are mutating, whereas `reversed` and `sorted` are not. However, I don’t know if there is a good reason why the mutating versions are methods and the…
[deleted]
Wouldn’t reddish organic matter just be “red meat”? Or do you consider, for example, lamb to be a type of beef?
> Genuinely curious, what makes Python look more like pseudocode? The use of colons? I used to think it was significant indentation, but if you look at the pseudocode on e.g. Wikipedia, there is no significant…
> I am sure method_missing could be implemented in python using various tricks but nobody, afaik, is doing that. You could probably implement method_missing in Python using either __getattribute__ or __getattr__. I…
IIRC Guido himself is planning on adding a `match` statement to Python.
> how would you showcase an experimental feature to the community? How do other languages do it? Python has the PEP process for discussing design on paper, but I don’t know how they handle experimental implementations.
> I’ll never understand how Python became the more widely appreciated language IMO syntax is a major factor. Python looks like pseudocode, while Ruby looks like Perl.
Did tech “barely exist” when Zuckerberg started Facebook in 2004?
> A guy who [...] wants to be known as the creator of something. I have this problem. I’m frequently distracted from doing what I want to do by ideas for things that I want to have done (and wouldn’t enjoy actually…