concurrency - Immutability in imperative languages as opposed to functional languages -


I see in concurrency and it seems that due to continuous variables / states due to other reasons, functional languages Priority is given) and in fact there is no need to lock these variables and when they enter them together, though, I have a problem with this because language like Java allows you to create temporal variables, it is a functional In the language How different is the inability of R?

The only real difference is that you do not jump through hoops to make things in functional languages ​​irreversible Does matter; It's automatic with Java, you should not increase the classrooms (making the class final or all of its constructions private) and make sure that any of your fields can change (either use only primitive and irreversible items for farms To make or copies on them and on the way out)

But the stability is irreversible, regardless of which type of language you use.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -