TeleMidia-MA / sncl

sNCL (simple NCL)
https://sncl.readthedocs.org
GNU General Public License v3.0
5 stars 1 forks source link

All Elements: Properties with no value in NCL #6

Open ghost opened 7 years ago

ghost commented 7 years ago
robertogerson commented 7 years ago

Wouldn't an empty string be enough for what you want to do?

For consistency and to avoid unnecessary complications in the parser my suggestion is to keep the "propname: value" syntax even for properties with no values. Thus, if we really need a string with no value, we will probably need a keyword for it (such as novalue, nil or empty). Just some experiments:

media media1
   left: ""
  # or
  left: nil
  # or
  left: empty
  #
  left: novalue
end

But, do we really need it? Is there an interesting use case for adding such a support?