nansencenter / nansat

Scientist friendly Python toolbox for processing 2D satellite Earth observation data.
http://nansat.readthedocs.io
GNU General Public License v3.0
181 stars 66 forks source link

Make Nansat immutable #164

Open akorosov opened 8 years ago

akorosov commented 8 years ago

There was a suggestion on Nansat lectures to make Nansat immutable: https://github.com/nansencenter/nansat-lectures/issues/3

That implies that reproject, crop, etc do not change the object but rather return new, modified object. Two Advantages:

Something to read about: http://programmers.stackexchange.com/questions/151733/if-immutable-objects-are-good-why-do-people-keep-creating-mutable-objects

aleksandervines commented 8 years ago

+1 seems a more logical approach

knutfrode commented 8 years ago

+1 yes, these are good arguments.

2016-03-17 9:49 GMT+01:00 Aleksander Vines notifications@github.com:

+1 seems a more logical approach

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/nansencenter/nansat/issues/164#issuecomment-197768571