Talk:Practical numbers: Difference between revisions

Line 25:
 
::: I have updated and improved, (and certainly not deleted), your code to use Python typing and removed the Haskell typing as it is inappropriate to a Python example. Don't add it back. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 08:35, 1 April 2021 (UTC)
 
::: Comments are for readers, Donald, type hints are for compilers. Different goals.
::: You have '''repeatedly''' deleted my original version completely, each time I restored it for display in parallel to your formally typed version
::: I am '''very''' pleased, however, to see that you have now improved that typing to the point where it is no longer misleading and obscuring.
::: Very helpful to have both versions in parallel, in the proper Rosetta manner, for comparison. They aim for different things. Clarity for the reader in one case, formal type checking in the other. Thank you for putting in the effort to learn the type-hint notation and to debug that example. Enjoy !! I look forward to seeing you use more pure value-returning functions :-) [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 09:58, 1 April 2021 (UTC)
 
==Python: Comment on type hints for the functional example==
9,659

edits