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

October 2025

S M T W T F S
    1 23 4
5 67891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 8th, 2025 05:35 am
Powered by Dreamwidth Studios