by stefanchrobot · 6y ago · 0 comments
pub fn any(tree: Tree(a), check: fn(a) -> Bool) -> Bool
I'd really prefer something like this (preferably with a syntax highlighter that would grey out the types): fn(Tree(a), fn(a) -> Bool) -> Bool
pub fn any(tree, check)
For some people, including myself, type annotations in Python are killing the spirit of the language. For me, there's no way to format those declarations to look reasonable, except for doing it like in Haskell or Elixir (@type).The syntax well not be changing again I'm afraid.