65

关闭迭代器是一个抽象漏洞 | hello2dj

 6 years ago
source link: https://hello2dj.github.io/2018/01/21/iterator/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
原文地址 先上图 先来普及一下抽象漏洞wiki抽象漏洞总结一小下:抽象漏洞告诉我们出来混早晚要还的,无论你怎么去屏蔽复杂,怎么去抽象,总是不完整的总是会有漏洞的。 迭代器和可迭代对象的一个概述在js中,迭代器和可迭代对象是顺序访问数据的抽象层接口。我们可以在数组或者优先级队列中看到他们。 一个迭代器就是一个拥有next方法的对象。当你调用next()的时候,他会返回一个Plain Old Java

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK