PTT評價

[問卦] goto considered harmful ?

看板Gossiping標題[問卦] goto considered harmful ?作者
loadingN
(sarsaparilla)
時間推噓 推:2 噓:2 →:7

如題
肥宅在review學妹的扣
發現她寫了一堆goto

幹!!
是在寫組語嗎?
要不要直接用jmp

遇到這種學妹該怎麼辦?
直接逐出實驗室嗎?


--
https://i.imgur.com/2xc8sUZ.png

https://i.imgur.com/bC6Ygol.png
https://i.imgur.com/qtgSJeG.png
https://i.imgur.com/2mlMBsT.png

--

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

JoyceTong 05/27 17:00月工

deepdish 05/27 17:01醒醒 你沒有學妹

yuchun1214 05/27 17:02五樓屌的code寫goto 6樓月工門

nh60211as 05/27 17:052022 了不要思想這麼古板

Killercat 05/27 17:10用longjmp/setjmp會比較好看嗎?

turtlebj4 05/27 19:29很多 exception handling 都是用 g

turtlebj4 05/27 19:29oto 實現 主要

turtlebj4 05/27 19:29是在allocate 失敗的時候 要善後

turtlebj4 05/27 19:29不然會 memory

turtlebj4 05/27 19:29leak 可以 參照 linux module 裡

turtlebj4 05/27 19:29面很多這種寫法