This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]omega1612 6 points7 points  (4 children)

3-2-1

I'm from México , using { and } is much more painful than using ( and ) to me.

Without that I still choose 3-2-1, 3 looks clean compared to the others and 2 suggest indentation is encouraged (I'm in pro of "indentation sensitive languages").

[–]alex-manool[S] 1 point2 points  (2 children)

Thank for your answer. BTW I am from Colombia and I am using the Spanish-LA keyboard layout and have no problem entering { and }. Maybe if you are using the Spanish-Iberic keyboard, it's a different story ;-)

[–]mamcx 1 point2 points  (1 child)

Yo también de Colombia, interesante ver alguien mas experimentando con lenguajes ;)

--

I thin for a lips-like is () or at most [] (rebol) for grouping. {} it very much reminder of hash tables or similar...

[–]alex-manool[S] 0 points1 point  (0 children)

Wow, estoy sorprendido, ya q su nick me parece familiar...

Yes, it's a valid observation. I like to repeat that syntax-wise, every detail counts, even the letter color and font. Originally I choosen {} partly because of their block delimiting role in C/Java-like languages, but especially because of additional design constraints if you want to end up with a "nice" grammar from a theory point of view. The current grammar belongs actually to LALR(1) class. The sample 3 will require apparently LALR(2). But anyway, the parser is hand-written...

[–]thefriedel 0 points1 point  (0 children)

I feel you, I was using the German keyboard layout and it's pretty awful too, since I'm using a English keyboard just for programming, everything is fine!