Hey there. I agree with some of the comments out there - a new language in Spanish does not make much sense in the pragmatic way: understanding English is a requirement for every coder out there. However, most of the technical projects out there do not have to be usable by everyone or have an interesting goal. So kudos for creating a language from zero (I saw the code on Github and I am sure you learnt a lot doing th…
Show HN: Spanish Basic
41–50 of 51 posts
Re: Show HN: Spanish Basic
#42Earlier quoted context omitted.
Spanish for "yes" is "sí", not "si".
Pedantic is being the friendly, correcting cynic. Native Spanish speakers use si as si in texts and informal messages all the time. It's understood from context; I think.
Re: Show HN: Spanish Basic
#43Not a native Spanish speaker, but i think they mixed up sino and si no . This is a common typo and they are etymologically the same. I guess by collapsing multiple words into a single token they collapse the two phrases. Eg. I look again and see finsi which seems strange from a Spanish grammatical sense (just like endif is clearly not English)
In Spanish "else" would be "si no", which is literally "if not". Assuming he supports negating any boolean expression with "no", this means the only way to differentiate between "else" and "if not " is to parse ahead and check if "si no" is being followed by a boolean expression or literally anything else. Also, under these conditions, assigning a boolean at the end of a conditional, e.g. "si no foo = falso", would always result in a parsing error.
Re: Show HN: Spanish Basic
#44As far as I remember, in Algol 68 the physical representation of the program was separated from the syntax. So, in theory one should have been able to write hacer ... recah
In memory BBC BASIC was tokenised so for instance PRINT was stored as just the byte 0xF1, so you could write a program lister that used other language's words (I remember at least one of those existing) and it would be similarly easy to go the other way too.
Re: Show HN: Spanish Basic
#45Me encanta eso ! Estoy aprendiendo la idioma y me parece muy interesante la idea de programar en español.
Re: Show HN: Spanish Basic
#46Me encanta eso ! Estoy aprendiendo la idioma y me parece muy interesante la idea de programar en español.
I'm not able to tell you why it is that way, but idioma (as well as the similar sounding idiota, and the similarly ending bioma) is a masculine word, so it'd be "el idioma". I wish it were easier to rationalize.
⸻
1. This is the case with many nouns that violate the expectation that an ending in -a would be feminine. The usual chapter one vocabulary word, nauta also comes from Greek, although in that case, the original word is ναύτης which is first-declension in Greek and remains first-declension in Latin, unlike idioma/ἰδίωμα.
Re: Show HN: Spanish Basic
#47Me encanta eso ! Estoy aprendiendo la idioma y me parece muy interesante la idea de programar en español.
I'm not able to tell you why it is that way, but idioma (as well as the similar sounding idiota, and the similarly ending bioma) is a masculine word, so it'd be "el idioma". I wish it were easier to rationalize.
Re: Show HN: Spanish Basic
#48Re: Show HN: Spanish Basic
#49Supongo eres hablante nativo, pero la sintaxis es horrible: "Para i=1 hasta 7 hacer" no hace ningún sentido. En todo caso sería " Para i en (1..7)" o "Desde i=1 hasta 7" o "Para i=1 mientras i In any case, all these copy-paste-just-literally-translate-the-keywords languages offer nothing new.
"no hace ningún sentido" makes no sense in Spanish either :)
https://twitter.com/raeinforma/status/1134042127565033473?la...
Re: Show HN: Spanish Basic
#50That was an exasperating workload. So kudos to you on this. It looks like you put a lot into it.
Some people are going on about English being mandatory for programming. It isn't necessary for non-English speaking people learning programming to learn both English and Programming at the same time, so I disagree with that. Professionally, sure. But this is a learning language, and it looks nice and clean.
And there are a lot of people who code for fun, just for themselves, too. They don't need to learn English just to accomplish that.
I wonder how many people realize some Lisp implementations are localized to similar effect. Set the language, and then the keywords change to something more appropriate for those languages.