[Pharo-dev] [ANN] Iceberg 0.6 released

Esteban Lorenzano estebanlm at gmail.com
Sat Oct 7 05:08:45 EDT 2017


> On 6 Oct 2017, at 23:44, Cyril Ferlicot D. <cyril.ferlicot at gmail.com> wrote:
> 
> Le 06/10/2017 à 23:34, Tim Mackinnon a écrit :
>> Gosh - It actually work quite well to be able to easily browse code
>> online in a more traditional format of seeing an entire class. Hopefully
>> this leads to us being able to share solutions to common language
>> agnostic problems.
>> 
>> One small observation - I quickly grok’d the use of class { …. } (with
>> the curly braces) - but given that smalltalk methods often have lots of
>>  [ ] (square braces in them), I was a bit surprised to see that method
>> declarations in tonal don’t use { … } (curly braces) to denote them, but
>> instead use [ ] - which feels slightly strange given the class
>> declaration above has. {}.
>> 
>> Was it easier to parse this way, or is there some subtlety I missed? I
>> would have been tempted to use  {} for classes and methods and [] for
>> the protocols as this more closely matches what other languages do - and
>> it might actually make it more easily readable for other programmers.
>> Given we have to learn this new format anyway - I’d be prepared to give
>> a nod to what others do…
>> 
>> Possibly this observation comes to late - and maybe there is compelling
>> reason to go the route we have gone - but maybe its worth a quick double
>> check as its an exciting development.
>> 
>> Tim
>> 
>> 
> Hi,
> 
> I cannot say for class, but the {} for methods metadata (as protocols)
> is because it is STON.

yeah, that’s the reason… we use STON to store package/class/method metadata. And STON uses curly braces :S
not a big fan either, but at a point I had to make the thing work :)

Esteban 

> 
> -- 
> Cyril Ferlicot
> https://ferlicot.fr <https://ferlicot.fr/>
> 
> http://www.synectique.eu <http://www.synectique.eu/>
> 2 rue Jacques Prévert 01,
> 59650 Villeneuve d'ascq France

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20171007/af92cf24/attachment-0002.html>


More information about the Pharo-dev mailing list