News for hackers. Stuff that matters.
Re:Guido van Rossum joins Microsoft by bmitc on Thursday November 12, 2020 @12:37PM (#25072294)
Isn't that just F#?
Re:Guido van Rossum joins Microsoft by estomagordo on Thursday November 12, 2020 @12:42PM (#25072365)
In the sense that indentation has syntactical meaning, yes. Otherwise, no no no.
Re:Guido van Rossum joins Microsoft by bmitc on Thursday November 12, 2020 @12:57PM (#25072581)
I don't understand. You can take Python code and basically write the equivalent in F#, ignoring many of F#'s additional features. It would look similar (probably even be cleaner) and would be type-safe.
Re:Guido van Rossum joins Microsoft by augusto-moura on Thursday November 12, 2020 @12:47PM (#25072438)
F# is not even close of Python, they are very distinct
Re:Guido van Rossum joins Microsoft by bmitc on Thursday November 12, 2020 @12:52PM (#25072517)
Of course, one is a sanely designed language. :)

Joking aside, my question centered around that if one wants a type-safe Python, why wouldn't you just want something similar to F#?

Re:Guido van Rossum joins Microsoft by augusto-moura on Thursday November 12, 2020 @02:45PM (#25074020)
This is the same as asking for typed JS and getting Rust recommended just because the syntax is similar.

They are totally different, the core paradigm of programming is totally changed and most of the points of JS are not in Rust (meta-programming, garbage collection, community)

Re:Guido van Rossum joins Microsoft by duckerude on Thursday November 12, 2020 @12:59PM (#25072595)
You can add typing to an existing codebase, saving you vast amounts of work compared to rewriting in a different language.
Re:Guido van Rossum joins Microsoft by bmitc on Thursday November 12, 2020 @01:06PM (#25072687)
Can that really be done for Python and the vast amount of libraries? I don't get the sense that one could simply slap on a static type system on Python and get libraries typed for free.

That is unless we're talking about a gradual typing system for Python, where new Python code could be typed and integrated into untyped codebases, similar to Racket and Typed Racket.

Re:Guido van Rossum joins Microsoft by duckerude on Thursday November 12, 2020 @01:12PM (#25072766)
The existing type system (see e.g. http://mypy-lang.org/) is gradual. You can mix typed and untyped code, at the cost of some safety.

You can also write type stubs for libraries that don't provide type information.

Re:Guido van Rossum joins Microsoft by justanotheratom on Thursday November 12, 2020 @08:46PM (#25077886)
Agree: F# as a better Python

https://youtu.be/_QnbV6CAWXc

Re:Guido van Rossum joins Microsoft by bmitc on Thursday November 12, 2020 @10:14PM (#25078405)
Thanks. :) I believe you're the only one who does here.