Talk:Empty string: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page with "Can we have an example of a language which has special syntax for empty strings, to justify the first claim in the task description? —~~~~")
 
(already there?)
Line 1: Line 1:
Can we have an example of a language which has special syntax for empty strings, to justify the first claim in the task description? —[[User:Kevin Reid|Kevin Reid]] 21:51, 4 July 2011 (UTC)
Can we have an example of a language which has special syntax for empty strings, to justify the first claim in the task description? —[[User:Kevin Reid|Kevin Reid]] 21:51, 4 July 2011 (UTC)
: The Perl 6 and Python examples both mentioned how empty strings are treated as boolean false, while nonempty ones are true (well in Perl if nonempty string looks like number "0" it's again treated as false, but that's more exception than rule). --[[User:Ledrug|Ledrug]] 23:30, 4 July 2011 (UTC)

Revision as of 23:30, 4 July 2011

Can we have an example of a language which has special syntax for empty strings, to justify the first claim in the task description? —Kevin Reid 21:51, 4 July 2011 (UTC)

The Perl 6 and Python examples both mentioned how empty strings are treated as boolean false, while nonempty ones are true (well in Perl if nonempty string looks like number "0" it's again treated as false, but that's more exception than rule). --Ledrug 23:30, 4 July 2011 (UTC)