multipledispatch
kotlin-script-examples
multipledispatch | kotlin-script-examples | |
---|---|---|
4 | 1 | |
792 | 286 | |
- | 1.0% | |
4.6 | 3.9 | |
11 months ago | 4 months ago | |
Python | Kotlin | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
multipledispatch
- If you had to pick a library from another language (Rust, JS, etc.) that isn’t currently available in Python and have it instantly converted into Python for you to use, what would it be?
- Is there any language that is as similar as possible to Python in syntax, readability, and features, but is statically typed?
-
Multiple dispatch in python
I'm a bit puzzled by this as multiple dispatch is not support by vanilla Python. There are libraries that add this, eg https://github.com/mrocklin/multipledispatch, but I'm not sure if your assignment is targeted at that solution. Perhaps it means to implement in such a way that the function can handle both cases? Because then you can use a default argument. Eg
- Multipledispatch: A relatively sane approach to multiple dispatch in Python
kotlin-script-examples
-
Is there any language that is as similar as possible to Python in syntax, readability, and features, but is statically typed?
+1. Especially useful kts (Kotlin script). It even have notation for dependencies right in script. (https://github.com/Kotlin/kotlin-script-examples/blob/master/jvm/main-kts/scripts/kotlinx-html.main.kts)
What are some alternatives?
plum - Multiple dispatch in Python
Lua - Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
MonkeyType - A Python library that generates static type annotations by collecting runtime types
F# - Please file issues or pull requests here: https://github.com/dotnet/fsharp
dynamic-dns - An automated dynamic DNS solution for Docker and DigitalOcean
beautiful-date - Simple and beautiful way to create date and datetime objects in Python.
julia - The Julia Programming Language
vega - A visualization grammar.
haxe - Haxe - The Cross-Platform Toolkit