0
\$\begingroup\$

Wren is a small, fast, class-based concurrent scripting language. Does anyone have any tips for this language?

Please make sure to post 1 tip per answer, and don't post answers like "remove whitespace".

\$\endgroup\$

2 Answers 2

2
\$\begingroup\$

String.fromByte

Instead of the standard String.fromCodePoint(x), a method that saves a whole 5 bytes is:

String.fromByte
\$\endgroup\$
0
\$\begingroup\$

In most cases true can be written 1 and false can be written !1

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.