[erlang-questions] Immutable isn't static Was: Re: Process scope variable

Rad Gruchalski radek@REDACTED
Thu Mar 12 23:09:05 CET 2015


Indeed, but more common usage of static in computer programming relates to “object property/method” instead of “class”.  
In Erlang, one could argue that mod:something(), where mod is indeed -module(mod), is static.
But in general term, static is not equal to immutable.

Take a look at Java:

class Whatever {
  public static String meh = “meh”;
}

You can change the value of meh by:

Whatever.meh = “meh meh”;

while immutable would be:

public static final String immutableMeh = “meh”;

You can’t change the value of this one.

There is a difference.  










Kind regards,

Radek Gruchalski

radek@REDACTED (mailto:radek@REDACTED)
 (mailto:radek@REDACTED)
de.linkedin.com/in/radgruchalski/ (http://de.linkedin.com/in/radgruchalski/)
+4917685656526

Confidentiality:
This communication is intended for the above-named person and may be confidential and/or legally privileged.
If it has come to you in error you must take no action based on it, nor must you copy or show it to anyone; please delete/destroy and inform the sender immediately.



On Thursday, 12 March 2015 at 22:59, Imants Cekusins wrote:

> Computing (Of a process (http://www.oxforddictionaries.com/definition/english/process#process__3) or variable (http://www.oxforddictionaries.com/definition/english/variable#variable__15)) notable (http://www.oxforddictionaries.com/definition/english/able#able__3) to be changed (http://www.oxforddictionaries.com/definition/english/change#change__3) during a set period,for example (http://www.oxforddictionaries.com/definition/english/example#example__15) while a program is running
> http://www.oxforddictionaries.com/definition/english/static  
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED (mailto:erlang-questions@REDACTED)
> http://erlang.org/mailman/listinfo/erlang-questions
>  
>  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150312/1af9ee7d/attachment.htm>


More information about the erlang-questions mailing list