3 ms·
Isn't that just F#?
by bmitc 6y ago
Isn't that just F#?
- estomagordo 6y agoIn the sense that indentation has syntactical meaning, yes. Otherwise, no no no.
- bmitc 6y agoI 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.
- augusto-moura 6y agoF# is not even close of Python, they are very distinct
- bmitc 6y agoOf 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#?
- duckerude 6y agoYou can add typing to an existing codebase, saving you vast amounts of work compared to rewriting in a different language.
- bmitc 6y agoCan 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.
- duckerude 6y agoThe existing type system (see e.g. http://mypy-lang.org/ 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.
- augusto-moura 6y agoThis 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)
- justanotheratom 6y agoAgree: F# as a better Python https://youtu.be/_QnbV6CAWXc https://youtu.be/_QnbV6CAWXc
- bmitc 6y agoThanks. :) I believe you're the only one who does here.