PTT評價

[問卦] Python 出 type hint代表投降了?

看板Gossiping標題[問卦] Python 出 type hint代表投降了?作者
dixitdeus
(dixitdeus)
時間推噓 9 推:13 噓:4 →:8

Python之前標榜dynamic typing

弄出一堆 variable type不清不楚的code

現在有了type hint,是不是代表投降了呀?

就算runtime才決定type,變數終究還是得有type的,不然人類很難懂

Python在資料科學與機器學習極具價值,但初學者學python真的會被荼毒耶


--

※ PTT 留言評論
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 172.58.207.117 (美國)
PTT 網址

boogieman 02/18 01:00滾回專版去

DarkIllusion 02/18 01:05不是 但我喜歡同事的 code 有 type

DarkIllusion 02/18 01:05hint

pkwelly 02/18 01:05學 php用萬能的var不好嗎

benptt 02/18 01:09我還是喜歡 Dyson

now99 02/18 01:17obj 也萬能啊

xzcb2008 02/18 01:21他媽的多個步驟不要這麼懶

hizuki 02/18 01:30C++ auto, template 表示?

orze04 02/18 01:44你現在不想寫 以後還是要還的

gkkswae 02/18 01:49終究還是要搞懂變數型態的 為什麼不一開

gkkswae 02/18 01:49始就學C

qw99992 02/18 02:05Java真香

KJC1004 02/18 02:18投降什麼?就只是滿足社群需求而已

CYCUTalker 02/18 02:21C++最討厭看到auto….

wario2014 02/18 02:21type hint是三小,沒用過喇

allenatptt 02/18 02:25python本來就不是給新手學的東西,學

allenatptt 02/18 02:25校請教C,學觀念很重要

wuyiulin 02/18 02:46C++ auto

wuyiulin 02/18 02:47我覺得工具越來越懶人化是必須的,又不

wuyiulin 02/18 02:47是所有程式都追求 performance

Ericz7000 02/18 04:40Intellij超棒的 瘋狂tab

steve1012 02/18 05:37type deduction 跟dynamic typing 又

steve1012 02/18 05:37不一樣..講auto 是在?

lylu 02/18 09:04auto是幫你推斷型別 真要說的話是any吧

gbgbdavidlee 02/18 10:37學PHP就好啦