News for hackers. Stuff that matters.
Re:Show HN: I built an online programming language by SwiftyBug on Thursday December 02, 2021 @11:19AM (#29418128)
Very cool!

As a native speaker of Portuguese, I think it would look nicer the verbs were all in the same conjugation, simple present. You have "retornar" (return) which is in infinitive form and "escreva" write which is in the present imperative mode. I would choose to put all the verbs in the simple present:

retorna => return faz => do escreve => print

I couldn't find the Portuguese version for "break", but in my opinion it should be "quebra" or "interrompe".

If this project becomes open source, I'll be happy to contribute.

Re:Show HN: I built an online programming language by Vox_Leone on Thursday December 02, 2021 @12:18PM (#29419132)
Great project. Congratulations.

I am also a pt_BR speaker. To be completely frank, I would say I'm more comfortable programming in English. In the “test” example, for instance, I wouldn't know which alias to use, whether 'verdadeiro' or 'verdade'. But it's pretty cool in English. Kudos

Re:Show HN: I built an online programming language by SwiftyBug on Thursday December 02, 2021 @05:32PM (#29423718)
I'd only choose "verdade" if its opposite is "mentira". Otherwise, I'd go with "verdadeiro", which goes better with "falso".
Re:Show HN: I built an online programming language by sandes on Thursday December 02, 2021 @12:52PM (#29419684)
Thank you! Can you help me set the correct alias for each word in portuguese?
Re:Show HN: I built an online programming language by rlf_dev on Thursday December 02, 2021 @12:19PM (#29419160)
I also think having everything in the formal form makes it a little bit jarring, like the sample code in the main page having the keyword "faca" when "faz" would be much more clearer.
Re:Show HN: I built an online programming language by sandes on Thursday December 02, 2021 @11:33AM (#29418352)
Thank you! I really appreciate this :)