Unity Spain

Comunidad => Unity Feeds => Mensaje iniciado por: pioj en Octubre 14, 2019, 11:00:34 AM

Título: [Jackson Dunstan] Strongly-Typed Integers
Publicado por: pioj en Octubre 14, 2019, 11:00:34 AM
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... (https://jacksondunstan.com/articles/5391)