Noticias

¡RECUERDA QUE SI ERES UN NUEVO USUARIO, DEBES PRESENTARTE PARA PODER PUBLICAR MENSAJES! | TENEMOS CANAL OFICIAL DE TELEGRAM: t.me/unity3dspain

Temas recientes

[Jackson Dunstan] Strongly-Typed Integers

Iniciado por pioj, Octubre 14, 2019, 11:00:34 AM

Tema anterior - Siguiente tema
An int can be anything: points, health, currency, time, etc. We often make mistakes using one int where another int was supposed to go. Imagine a function DoDamage(int, int). It's not obvious what the parameters mean. Today we'll use the C# type system to make the code much more readable and less error-prone! Inspiration .NET [...]
Ver artículo completo...

Etiquetas: