[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: When is a string not a string?
- From: Жаботинский Евгений <evg-zhabotinsky@...>
- Date: Thu, 24 Jan 2019 17:32:23 +0300
"Soni "They/Them" L." <email@example.com>:
> Custom literals:
> local foo = u128"10000000000000000000000000000000000000"
> local bar = re"[A-Za-z_][A-Za-z0-9_]*"
Hm, yes. That is useful.
Also, in these examples the function call actually looks like a literal prefix.
If such convention is followed, it really is obvious what the code does.
> -- Error
> function s(v) return v end
> -- "2A"
So… I guess it does not make much sense to force use of parentheses for method calls only around "primitive" string literals.
-- Evgeniy Zhabotinskiy