On 6 Oct 2017, at 23:44, Cyril Ferlicot D. <cyril.ferlicot@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