Skip to content

Instantly share code, notes, and snippets.

@exaV
Last active July 23, 2021 12:42
Show Gist options
  • Save exaV/e2a827cd83eaef59f645284c053a2ebd to your computer and use it in GitHub Desktop.
Save exaV/e2a827cd83eaef59f645284c053a2ebd to your computer and use it in GitHub Desktop.
.soutv : print an expression to System.out
ARRAY → System.out.println("\n\n$escapedExpr*:escapeString(expr)$ = " + java.util.Arrays.toString($expr$) + "\n");
NON_VOID → System.out.println("\n\n$escapedExpr*:escapeString(expr)$ = " + $expr$ + "\n");
.soutv : print an expression to console
ANY → console.log(`\n\n$expr$=\${$expr$}\n`)
.soutj : stringify and print to console
ANY → console.log(`\n\n$expr$=\${JSON.stringify($expr$)}\n`)
.soutv : print an expression to System.out
ANY → println("\n\n$expr$=\${$expr$}\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment