Re: What is the Point of Static or Constant Variables?
@8, it depends on what you want to do.
@6, yes,static variables can be non-constant. The reason I indicated that static variables are constant is usually because they (always) should be unlesss you've got locking in place (Rust enforces this paradigm). I've gotten used to Rust so much now its just automatic to say, "Static: constant or locked." The reason is, of course, because the variables are global and are available to everything... you can easily mess up your code with those if your not careful, especially since your modifying global state.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector