Timeline for What does "set" mean in programming languages like C#?
Current License: CC BY-SA 4.0
30 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 3, 2022 at 11:00 | history | removed from network questions | Thomas Owens♦ | ||
| Feb 3, 2022 at 11:00 | history | protected | Thomas Owens♦ | ||
| Feb 3, 2022 at 8:11 | comment | added | AakashM |
I find it hard to believe that a book about C# has got to the section about "pattern matching with switch" without first talking at least a little about variables...
|
|
| Feb 3, 2022 at 6:47 | vote | accept | Hossein | ||
| Feb 3, 2022 at 0:51 | comment | added | Andrew T. | As someone who came from HNQ, not sure if it's only me that feels the title is currently ambiguous because there's set (mutator method) and set (data type). | |
| Feb 2, 2022 at 22:11 | answer | added | dan04 | timeline score: 6 | |
| Feb 2, 2022 at 22:03 | comment | added | ikegami | Re "You mean that "set" is kind of synonym to 'initialize'?", You do set a variable to a value when you initialize it, but not the other way around. Initialization usually refers to the first value given to a variable. | |
| Feb 2, 2022 at 21:57 | comment | added | ikegami |
Two definitions in CS when used as a verb. 1) To set a variable to something is to change its value to that something. Often paired with "get". For example, ccessors that modify attributes and those that fetch the value of attributes are respectively known as setters and getters. 2) To set a bit is to make it true.. To set a variable is change its value to true or a true value. To modify it to a false is value is to clear it.
|
|
| Feb 2, 2022 at 21:00 | history | tweeted | twitter.com/StackSoftEng/status/1488980571711807495 | ||
| Feb 2, 2022 at 20:51 | review | Close votes | |||
| Feb 7, 2022 at 3:03 | |||||
| S Feb 2, 2022 at 20:17 | history | suggested | CommunityBot | CC BY-SA 4.0 |
Clean up the grammar and the formatting
|
| Feb 2, 2022 at 19:15 | review | Suggested edits | |||
| S Feb 2, 2022 at 20:17 | |||||
| Feb 2, 2022 at 16:14 | history | reopened |
Doc Brown 8bittree Flater |
||
| Feb 2, 2022 at 14:56 | comment | added | Doc Brown | @GregBurghardt: I am here with Flater, who gave a good reason why not to close this question. | |
| Feb 2, 2022 at 14:54 | review | Reopen votes | |||
| Feb 2, 2022 at 16:16 | |||||
| Feb 2, 2022 at 14:49 | comment | added | Filip Milovanović | It just means to change the value of a variable to something, to "set its value". It's a verb, the opposite of get. (Later on, you'll learn about "getters" and "setters"). In case you're confusing it with the mathematical notion of a set (a collection of elements) - it has nothing to do with that; those are two different terms that happen to be written the same. | |
| Feb 2, 2022 at 14:27 | history | closed |
gnat Greg Burghardt lennon310 |
Not suitable for this site | |
| Feb 2, 2022 at 14:03 | history | became hot network question | |||
| Feb 2, 2022 at 13:42 | comment | added | Greg Burghardt | I’m voting to close this question because it asks about the meaning of a word used in a sentence rather than a keyword in a programming language. Questions like this would be a better fit for the English Language Learners community. | |
| Feb 2, 2022 at 11:38 | history | edited | Doc Brown |
edited tags
|
|
| Feb 2, 2022 at 11:33 | review | Close votes | |||
| Feb 2, 2022 at 14:27 | |||||
| Feb 2, 2022 at 9:09 | comment | added | Doc Brown | @Hossein: not in general , but in this case it would fit. | |
| Feb 2, 2022 at 9:01 | answer | added | Flater | timeline score: 33 | |
| Feb 2, 2022 at 8:05 | comment | added | tkausl | No. dictionary.com/browse/set | |
| Feb 2, 2022 at 8:03 | history | edited | Hossein |
edited tags
|
|
| Feb 2, 2022 at 6:41 | comment | added | Hossein | You mean that "set" is kind of synonym to 'initialize'? | |
| Feb 2, 2022 at 6:05 | comment | added | Doc Brown | Please, next time, when you post code anywhere, invest some minimal formatting effort to make it readable. But FWIW: "set" can be replaced by "initializes", or "assigns [a certain value to]". And "the commented statement that sets the path variable" refers to the first line in the code block section above. | |
| Feb 2, 2022 at 6:05 | history | edited | Doc Brown | CC BY-SA 4.0 |
added 40 characters in body
|
| S Feb 2, 2022 at 5:56 | review | First questions | |||
| Feb 2, 2022 at 9:11 | |||||
| S Feb 2, 2022 at 5:56 | history | asked | Hossein | CC BY-SA 4.0 |