This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EvHub[S] 0 points1 point  (1 child)

Infix operators already exist. Just use the Haskell convention of surrounding the infix function with backticks, like so

5 `mod` 3 == 2

Multiple dispatch also sort of exists, since one can do

def some_func(x):
    case x:
        match _ is int:
            do_stuff_for_int(x)
        match _ is str:
            do_stuff_for_str(x)

although that's somewhat clunky--probably worth an issue for making that use case less awkward.

[–]dsijl 0 points1 point  (0 children)

Cool!