REBOL 3.0

EMPTY? none

Carl Sassenrath, CTO
REBOL Technologies
1-May-2010 23:18 GMT

Article #0315
Main page || Index || Prior Article [0314] || Next Article [0316] || 14 Comments || Send feedback

This is not a new idea... it's a nag.

Code like this pops up often:

if all [not none? value not empty? value] [...]

If we allow EMPTY? on none! then we could simply write:

if not empty? value [...]

I'm inclined to add it... unless you shout loudly really soon.

Why? This pattern happens often. FOREACH already does it in R3.

14 Comments

REBOL 3.0
Updated 21-Apr-2024 - Edit - Copyright REBOL Technologies - REBOL.net