|
|
|
|
|
by rujuladanh
2636 days ago
|
|
Yes, yes, of course. All my C programs are pure too! They are a simple mapping of a tuple (hardware state, queue of world events) onto itself! Truly marvelous! Vive la pureté! PS. I am now working on abstracting this further, and I just realized the universe itself is pure too; but somehow I got some strange behaviors when I started to look into particles too closely... will report back soon. |
|
When you call a C function, you cannot know whether equational reasoning holds, whereas you can be sure when you're using a pure language. Therefore, when you're working on a project that is 100% in say Idris, you are in fact making a totally pure program. You could make an Idris compiler that inserts random perturbations in various functions, or you could look at crashes etc., but that is not where the concept of purity applies, it's a category error to think it does.