[Pharo-users] Macros?

2018-05-25 Thread Debiller 777
Well, I've already asked about adding new literals to pharo or Smalltalk in general, however this time I have a better idea: macros. Can they be added? Because if I understand correctly they may be the only way to do that.

Re: [Pharo-users] Literals (Richard Sargent)

2018-04-29 Thread Debiller 777
Well, set idea was just a small proposal, which had to help me in solving a harder problem. I wanted to add something like extensionable literal. The idea is that when compiler sees some special literal, it reads it, turns into an object and sends #parse message to it. After that literal answers so

Re: [Pharo-users] Literals (Richard O'Keefe)

2018-04-28 Thread Debiller 777
Can you please tell more about ##() thing?

[Pharo-users] Literals

2018-04-27 Thread Debiller 777
You know, literals are quite useful in case when you want to shorten some object initialization. For example #() and {} for arrays and $[]for byte arrays. However, if there is a way to add custom literals, for example for sets (something like #{} I guess)? how to do it? and can some special kind of