[Cuis-dev] Language constructs
Phil B
pbpublist at gmail.com
Fri May 1 10:25:09 PDT 2020
Juan,
On Fri, May 1, 2020 at 10:49 AM Juan Vuletich <juan at jvuletich.org> wrote:
> Just in case, let me tell why I prefer the backticks to the Point zero
> singleton.
> - Point zero only works for Points. And just for one specific value: 0 at 0.
> Backticks work with any object.
> - Point zero saves memory, but not message sends. Backticks saves both.
> - The ratio complexity/uses (if that can be meaningfully defined) is much
> lower for backticks.
>
I agree that a literal syntax is a better solution, I just didn't think
you'd go for it ;-) My only regret is that had I known you would be open
to it, I would have used something other than `` since the part of my brain
that thinks in Lisp still think's 'that's so wrong!' :-)
>
> Still, they are not exactly the same. Point zero would allow having a
> single zero point for all the system (like Symbols). Backticks require
> having one instance of 0 at 0 on each method.
>
Yup.
>
> It's all about tradeoffs.
> Cheers,
>
> --
> Juan Vuletich
>
> Thanks,
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200501/2a5cde64/attachment.htm>
More information about the Cuis-dev
mailing list