Skip to main content
added 85 characters in body
Source Link
Cristian Lupascu
  • 8.7k
  • 2
  • 26
  • 52

Don't use the true and false keywords.

Use:

  • !p for true (thanks, histocrat!)
  • !0 for false. If all you need is a falsy value, then you can simply use p (which returns nil).

to save some chars.

Don't use the true and false keywords.

Use:

  • !p for true (thanks, histocrat!)
  • !0 for false

to save some chars.

Don't use the true and false keywords.

Use:

  • !p for true (thanks, histocrat!)
  • !0 for false. If all you need is a falsy value, then you can simply use p (which returns nil).

to save some chars.

Mod Removes Wiki by Doorknob
added 29 characters in body
Source Link
Cristian Lupascu
  • 8.7k
  • 2
  • 26
  • 52

Don't use the true and false keywords.

Use !!0 for true and !0 for false:

  • !p for true (thanks, histocrat!)
  • !0 for false

to save some chars.

Don't use the true and false keywords.

Use !!0 for true and !0 for false to save some chars.

Don't use the true and false keywords.

Use:

  • !p for true (thanks, histocrat!)
  • !0 for false

to save some chars.

Source Link
Cristian Lupascu
  • 8.7k
  • 2
  • 26
  • 52

Don't use the true and false keywords.

Use !!0 for true and !0 for false to save some chars.