Tag Archives: types

Enum cases with associated values are powerful but we need follow-up patterns

Let’s assume we want to use Swift to develop a function to round floating point numbers, in different ways according to a context. For example, sometimes the result of such rounding could be the input value itself (like on a … Continue reading

Posted in Swift | Tagged , , , , , , | Leave a comment

To var or not to var

Do you think it’s better to use var keyword of C# when you declare variables, or always set them up using their types? I personally prefer the var shortcut but only when the name of the variable identifies its type, especially … Continue reading

Posted in .NET, C# | Tagged , , | Leave a comment