logoalt Hacker News

xkcd-sucks • yesterday at 7:03 PM • 1 reply • view on HN

    In [1]: def f(x: int) -> float:
       ...:     return f"the input was {x}"
    In [2]: f(b'deadbeef')
    Out[2]: "the input was b'deadbeef'"

Replies

gonzalohm • yesterday at 7:22 PM

Python is a dynamically typed language. That's exactly my point! The less "strict" the language, the more open to interpretation.

It is not bad per se, but it comes with huge downsides. And the more abstract the language the messier it gets.

I just don't think that the gains in coding speed we get from using AI + human language as outweigh the downsides of having poorly defined programs

➕ show 1 reply