Jun. 17th, 2010

TODO:

Jun. 17th, 2010 06:45 pm
juan_gandhi: (Default)
Java thing:
Write a blog post about something as weird as a mutable list of immutable entities (like List[=>X], in scalaspeak).

So, you think you have a list (get it from the depths of a database); you walk over its elements and set something inside (apply State monad inside List monad); so what? the list will return a new instance every time, because what it does is recalculate the instance. like in

  List<Date> dateRange(Date from, Date to) {
    // imagine the code that just adds n days to from to get to
  }


If you think we should not change things, things are more complicated, think monad.
juan_gandhi: (Default)
here
Т
Нойзбридж - это санфранцисский дом культуры; мы там одно время категорный семинар собирали. Прикольный народ там.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

September 2025

S M T W T F S
 1 23456
78910111213
14151617181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 5th, 2025 04:55 pm
Powered by Dreamwidth Studios