Note that there are some explanatory texts on larger screens.

plurals
  1. USNorguard
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COIt is very common. But it's also common to enclose procedural code, to avoid adding 2-dozen variables to the global scope, if all you want to do is set event-handlers or bind a known model to a DOM element, et cetera. Working with the return value, `!`, `new`, `+`, `-`, `~` and `(` all give you something VERY DIFFERENT in what they return. If you aren't working with the return value, and are relying on doing your whole procedure inside, then you can use any of them to evaluate your function. In fact, maybe it'd be a good way to indicate which functions do have useful returns.
      singulars
    2. CO@Christoph How so? What I mean to imply is that if there is no variable there to catch the return statement, then there is not going to be much difference at all in what happens inside of the function. In terms of namespacing modules or whatever else you might do, there can be large ramifications. If you are inlining immediate, procedural code, outside of the global scope, which is not being returned to a var for later use, then `new` or `(` or `!` are all going to achieve pretty much the same thing, with minimal (practically none) side-effects.
      singulars
    3. COThat is cool by me - just remember that the onus is on you, one way or another to make sure that your data is either validated on the way in, or on the way out. ie: if you are going to use word-boundaries, keep in mind that `_` is considered a letter, as far as `\w` is concerned -- so check for that stuff if your data is not 100% perfect. Also validate the length of the letter-string, after the boundary-split. In the end, you do similar amounts of work -- it is a question of where you do the work and how much you can trust what is in your data (*hint* -- public site: none of it)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload