[問題] 關於goto的使用,想聽聽各位的意見
如題
我想goto的缺點大家一定比我還熟
可讀性變差、狀態不可預期、結構不明確…等的
但是從高中到現在
我遇到的所有教程式設計的老師
一定會教goto
卻一定會禁止我們用goto
如果它真的那麼差的話,怎麼會被留到現在?
事出必有因,我認為一定是goto有它難以取代的好處
所以在此向各位請益
板上是否有人支持goto?而支持使用goto的原因又為何?
且是否在解決什麼問題時,有「非用goto不可」的情形呢?
懇請各位解決我小小的疑惑
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.230.128.38
推
05/20 10:41, , 1F
05/20 10:41, 1F
→
05/20 10:42, , 2F
05/20 10:42, 2F
→
05/20 10:42, , 3F
05/20 10:42, 3F
推
05/20 10:43, , 4F
05/20 10:43, 4F
→
05/20 10:46, , 5F
05/20 10:46, 5F
推
05/20 10:49, , 6F
05/20 10:49, 6F
推
05/20 10:51, , 7F
05/20 10:51, 7F
→
05/20 10:51, , 8F
05/20 10:51, 8F
→
05/20 10:51, , 9F
05/20 10:51, 9F
→
05/20 10:53, , 10F
05/20 10:53, 10F
→
05/20 10:53, , 11F
05/20 10:53, 11F
→
05/20 10:54, , 12F
05/20 10:54, 12F
→
05/20 10:54, , 13F
05/20 10:54, 13F
→
05/20 11:05, , 14F
05/20 11:05, 14F
→
05/20 11:05, , 15F
05/20 11:05, 15F
→
05/20 11:21, , 16F
05/20 11:21, 16F
→
05/20 11:27, , 17F
05/20 11:27, 17F
→
05/20 11:28, , 18F
05/20 11:28, 18F
→
05/20 11:29, , 19F
05/20 11:29, 19F
→
05/20 11:29, , 20F
05/20 11:29, 20F
→
05/20 11:30, , 21F
05/20 11:30, 21F
→
05/20 11:31, , 22F
05/20 11:31, 22F
→
05/20 11:32, , 23F
05/20 11:32, 23F
→
05/20 11:33, , 24F
05/20 11:33, 24F
→
05/20 11:33, , 25F
05/20 11:33, 25F
→
05/20 11:41, , 26F
05/20 11:41, 26F
→
05/20 11:41, , 27F
05/20 11:41, 27F
→
05/20 11:42, , 28F
05/20 11:42, 28F
→
05/20 11:42, , 29F
05/20 11:42, 29F
→
05/20 11:43, , 30F
05/20 11:43, 30F
→
05/20 11:43, , 31F
05/20 11:43, 31F
推
05/20 12:25, , 32F
05/20 12:25, 32F
推
05/20 12:26, , 33F
05/20 12:26, 33F
→
05/20 12:27, , 34F
05/20 12:27, 34F
推
05/20 12:30, , 35F
05/20 12:30, 35F
→
05/20 12:31, , 36F
05/20 12:31, 36F
→
05/20 12:37, , 37F
05/20 12:37, 37F
→
05/20 12:37, , 38F
05/20 12:37, 38F
→
05/20 12:38, , 39F
05/20 12:38, 39F
→
05/20 12:39, , 40F
05/20 12:39, 40F
→
05/20 12:39, , 41F
05/20 12:39, 41F
推
05/20 12:58, , 42F
05/20 12:58, 42F
推
05/20 13:34, , 43F
05/20 13:34, 43F
→
05/20 13:35, , 44F
05/20 13:35, 44F
推
05/20 13:35, , 45F
05/20 13:35, 45F
→
05/20 13:36, , 46F
05/20 13:36, 46F
→
05/20 14:28, , 47F
05/20 14:28, 47F
推
05/20 16:24, , 48F
05/20 16:24, 48F
推
05/20 16:28, , 49F
05/20 16:28, 49F
推
05/20 17:31, , 50F
05/20 17:31, 50F
推
05/21 09:22, , 51F
05/21 09:22, 51F