Better HN
topnewbestaskshowjobs
Log inSign up

gredman

3 karma · joined Nov 23, 2008 (18y ago) · 4 submissions

Submissions

comment 15y ago · link · parent

https://bitbucket.org/gr3dman/lishp

In Haskell. Has partial application, but is otherwise terrible.

comment 15y ago · link · parent

Say we start with three tabs, so i goes 0, 1, 2.

When i reaches 2, two tabs have already been removed, so there is only one tab left. So in the loop body we then do:

    this.MyControl.TabPages[2] // oh no!
In general, modifying a collection is a bit of a code smell, and a lot of iterator implementations will actually throw exceptions if you try it.

comment 15y ago · link · parent

I believe it exists in Cω via "generalized member access" without recourse to map/foreach-type constructs.

comment 16y ago · link · parent

fc