Leyendo cosas sobre
Nemerle he encontrado un lenguaje de programacion bastante interesante:
Speagram.
Un ejemplo de la web:
CitarVariable *a* as natural number.
Variable *n* as natural number.
New function natural number *!* as natural number.
Let 0! be 1.
Let n! be (n-1)! * n.
New function natural number *^* natural number as natural number.
Let a^0 be 1.
Let a^n be a * a^(n-1).
New function natural number *is* *divisible* *by* natural number
as boolean.
Let a is divisible by n be a % n == 0.
New function *all* *numbers* *smaller* *than* natural number
*and* *greater* *than* *one* as list of natural number.
Let all numbers smaller than 0 and greater than one be [].
Let all numbers smaller than 1 and greater than one be [].
Let all numbers smaller than 2 and greater than one be [].
Let all numbers smaller than n and greater than one be
append n-1 to all numbers smaller than (n-2) and greater than one.
New function natural number *is* *not* *divisible* *by*
*any* *of* list of natural number as boolean.
Let n is not divisible by any of [] be true.
Variable A as list of natural number.
Let n is not divisible by any of a::A be
it is false that n is divisible by a and n is not divisible by any of A.
New function natural number *is* *prime* as boolean.
Let 0 is prime be false.
Let 1 is prime be false.
Let n is prime be n is not
divisible by any of all numbers smaller than n and greater than one.
Close context.
Si bien no creo que sea factible para usarlo de forma seria (considero que hay que escribir demasiado) es por lo menos bastante curioso.
dios me recuerda al cobol <_<
Let all numbers smaller than 0 and greater than one be [].
HAGG!! Siii! BOBOL! argg... aggg... todavía tengo espamos nerviosos cuando me acuerdo... (nooo)
A mí me recuerda al Lingo del Director.
La teoría es buena: "Cuanto más se parezca al lenguaje real, más fácil".
La práctica es todo lo contrario. "Yo.Ir(Esquina.Tienda)" es mucho más sencillo de leer y escribir que "Me voy a la tienda de la esquina" :)
Ese lenguaje esta claro que no es mas que un juguete. Pero me ha hecho gracia por lo "currado" que lo tienen. Tener que hacer un programa relativamente grande con eso debe ser una autentica tortura, mejor el brainfuking para eso :-P.
A mi me parece C/C++ casi más legible XD.
Para escribir un programa con esto has de ser cervantes... :P
Cita de: "vincent"Para escribir un programa con esto has de ser cervantes... :P
Yo mas bien diría shakespeare :P .
Yo di cobol en la secundaria, en 6to año en 1999 ... todos nos preguntamos por que, aun que bueno, muchos bancos requerian reescribir codigo por lo del efecto 2000. Aun que lo fuerte fueron pascal y delphi.
Saludos.
Pogacha, cuando yo estudié Analista de Sistemas, EL lenguaje fue BOBOL... arghh.. de pronunciarlo me vine algo..
Ni siquiera me enseñaron deBase...