Sintaxis de funciones flechas en typescript [ESP/ENG]
Este lenguaje de programación es muy utilizado en el mundo de la programación web porque nos obliga a los desarrolladores a no cometer errores es por eso el hecho del tipado forzado.
Si bien uno está muy acostumbrado a utilizar un lenguaje de programación mucho más liberal que javascript en este caso los tipos no obligan al desarrollador a no poseer tanta libertad de cometer errores porque podemos crear funciones que acepten cualquier tipo de parámetro y retorno en cualquier tipo de valor cuando en el contexto de la función solo debería aceptar ciertos parámetros y retornar valores esperados.
This programming language is widely used in the world of web programming because it forces developers not to make mistakes, which is why forced typing occurs. Although one is very accustomed to using a much more liberal programming language than javascript, in this case the types do not force the developer to not have so much freedom to make mistakes because we can create functions that accept any type of parameter and return in any type of value when in the context of the function it should only accept certain parameters and return expected values.
Y aquí que entraste lenguaje para solventar esos errores pero en este caso muestro que hay diferentes maneras de escribir lo mismo lo que a veces puede llegar a producir una confusión en la lectura de esta sintaxis.
And here you entered language to solve those errors, but in this case I show that there are different ways of writing the same thing, which can sometimes cause confusion when reading this syntax.
Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!
Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).
You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.
Congratulations @dobro2020! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)
Your next target is to reach 22000 upvotes.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
Check out our last posts: