[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generators (iterators) for Gnu Emacs
From: |
Daniel Colascione |
Subject: |
Re: Generators (iterators) for Gnu Emacs |
Date: |
Sun, 07 Dec 2014 15:39:22 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
On 12/07/2014 03:31 PM, Stefan Monnier wrote:
>> That's a terrible idea. It makes it much harder to reason about the
>> correct operation of programs, since now it makes it virtually
>> impossible to implement find-definition functionality without lots of
>> type inference.
>
> That's indeed the main problem, and I agree it's a serious one.
>
>> There's also the runtime overhead of dynamic dispatch.
>
> That's not relevant: one way or another there is dynamic dispatch,
> regardless what system we use.
That's not true: if we send messages to objects, we can only know the
code to execute after examining the object. If we invoke functions
directly, we know *statically* what code runs where.
>> Common Lisp solved this problem 20 years ago with namespaces. We should
>> just implement CL namespaces instead of trying to shoehorn Smalltalk
>> into the language. Would you accept a CL packages implementation?
>
> Last time this was discussed (a year ago, maybe?), we neded turning it
> down, mostly because `M-x grep RET' can't be used for find-definition
> and find-uses.
*Any* solution that frees developers from spelling all symbols in full
will have that disadvantage. At least namespaces make it relatively
symbol to determine the fully-resolved symbol from lexical context
without requiring a full type inference pass.
signature.asc
Description: OpenPGP digital signature
- RE: Generators (iterators) for Gnu Emacs, (continued)
- RE: Generators (iterators) for Gnu Emacs, Drew Adams, 2014/12/08
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/08
- Re: Generators (iterators) for Gnu Emacs, Richard Stallman, 2014/12/08
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Nic Ferrier, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Nic Ferrier, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/07
- RE: Generators (iterators) for Gnu Emacs, Drew Adams, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs,
Daniel Colascione <=
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Daniel Colascione, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Thien-Thi Nguyen, 2014/12/08
- Re: Generators (iterators) for Gnu Emacs, David Engster, 2014/12/08
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/08
- Re: Generators (iterators) for Gnu Emacs, Dmitry Gutov, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Stefan Monnier, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, Dmitry Gutov, 2014/12/07
- Re: Generators (iterators) for Gnu Emacs, David Kastrup, 2014/12/07