Timeline for When submitting a function, can global variables be declared outside the function?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:03 | history | edited | CommunityBot |
Commonmark migration
|
|
Oct 14, 2015 at 15:38 | comment | added | Geobits | +1, provided that the function is still reusable. | |
Jul 4, 2015 at 20:07 | comment | added | isaacg | We've always allowed defining helper functions outside the submitted function, and I think global variables fall in a similar category. | |
Jul 4, 2015 at 19:44 | comment | added | Peter Taylor | The only argument against that I can see is that it makes the functions not thread-safe, but any function which prints to stdout isn't thread-safe, so that argument carries no weight. | |
Jul 4, 2015 at 17:46 | history | edited | Level River St | CC BY-SA 3.0 |
deleted 15 characters in body
|
Jul 4, 2015 at 17:29 | history | edited | Level River St | CC BY-SA 3.0 |
added 15 characters in body
|
Jul 4, 2015 at 17:14 | history | answered | Level River St | CC BY-SA 3.0 |