On Fri, Aug 06, 2021 at 04:17:55PM +0800, Mxzixl wrote:

> Consider ML-style? :D
> 
> ```
> 
> def fib(n):
>     | n == 0     = 0
>     | n == 1     = 1
>     | otherwise  = fib(n-1) + fib(n-2)


I like the look of this when I read Haskell code. We can bike-shed the 
syntax, but I think that's more promising than multiple function 
definitions.



-- 
Steve
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/7XMCXNBCQL72GMUCDUC5JB72O27ERZXJ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to