it is an interesting topic. I find #() more expressive than Array
empty. but perhaps this is because I have learnt to recognize it
deeply. Something i remember Michele Lanza talking about visualisation
and the types of things (size, colour, shape) that we have a primitive
recognition of
http://w
On Feb 16, 2010, at 8:01 PM, Chris Muller wrote:
> Even if you make the compiler change, I hope you will still consider
> leaving the two #empty methods in place for expressiveness. They,
> too, would answer the single canonicalized global stored in the
> compiler. However, the use of #empty ma
On Feb 16, 2010, at 8:01 PM, Chris Muller wrote:
> Even if you make the compiler change, I hope you will still consider
> leaving the two #empty methods in place for expressiveness. They,
> too, would answer the single canonicalized global stored in the
> compiler. However, the use of #empty ma
Even if you make the compiler change, I hope you will still consider
leaving the two #empty methods in place for expressiveness. They,
too, would answer the single canonicalized global stored in the
compiler. However, the use of #empty makes the canonicalization
explicit rather than implicit, and
On Feb 13, 2010, at 8:03 PM, Stéphane Ducasse wrote:
> the only think is that the #() and '' will not be created all the time but in
> the compile method literal frame.
>
Yes, right now it's created once per method... the compiler could easily make
sure that it's shared globally.
Marc
the only think is that the #() and '' will not be created all the time but in
the compile method literal frame.
Stef
> would the idea to be to rewrite every #() with Array empty?
>
> If that was the case could you get the compiler to do that as an
> optimization? I quite like the fact that #()
On Feb 13, 2010, at 7:40 PM, Michael Roberts wrote:
> would the idea to be to rewrite every #() with Array empty?
no and this is a good question.
For now I do not see what we learn. I'm not sure that these empty messages
bring anything.
besides one extra message.
> If that was the case could y
would the idea to be to rewrite every #() with Array empty?
If that was the case could you get the compiler to do that as an
optimization? I quite like the fact that #() is the empty array. it's
nice and compact; quite aesthetic.
cheers,
Mike
On Sat, Feb 13, 2010 at 11:06 AM, Stéphane Ducasse
w
Hi guys
chris mueller proposed in squeak to have
Exception>>messageText
"Return an exception's message text."
+ ^ messageText ifNil: [ String empty ]!
-
- ^messageText!
- Added Array class>>#empty and String class>>#empty to provide applications
with
canonicalized instances