nil
- Examples
Todo tiene un valor, incluso si ese valor es nil. | Everything has a value, even if that value is nil. |
Si este argumento está ausente o es nil retorna d. | If this argument is absent or is nil, returns d. |
Lo predeterminado es nil, porque esto molesta a algunos suscriptores. | The default is nil, because this annoys some subscribers. |
En Swift, nil significa la ausencia de un valor, cualquier valor. | In Swift, nil means the absence of a value, any value. |
Si el segundo argumento está ausente entonces se interpreta como nil. | If the second argument is absent, then it is interpreted as nil. |
Discutiremos nil a más detalle un poco después. | We'll discuss nil in more detail a bit later. |
Estos también pueden tomar argumentos nil, arreglos o rangos. | These can also take nil, array or range arguments. |
En Objective-C, nil es un apuntador a un objeto que no existe. | In Objective-C, nil is a pointer to an object that doesn't exist. |
Serán nil si ya hemos procesado éste contacto. | They will be nil if we have already processed this contact. |
En otro caso todas las variables son inicializadas con nil. | Otherwise, all variables are initialized with nil. |
Antes de la primera asignación el valor de una variable es nil. | Before the first assignment to a variable, its value is nil. |
Si la función falla retorna nil, más un string describiendo el error. | If this function fails, it returns nil, plus a string describing the error. |
Si metatabla es nil entonces se elimina la metatabla de la tabla dada. | If metatable is nil, removes the metatable of the given table. |
Si vienes de Objective-C, entonces muy seguramente sabes que es nil. | If you're coming from Objective-C, then you most certainly know what nil is. |
La función retorna nil si no hay un upvalue con el índice dado. | The function returns nil if there is no upvalue with the given index. |
Pero entonces, ¿qué es ese => nil? | But then what's the => nil bit? |
Tanto false como nil se consideran falsos. | Both false and nil are considered false. |
Si el valor de xsi:nil es true, el contenido se tratará como inexistente. | If the value of xsi:nil is true, the content will be treated as non-existent. |
También usamos ==nil para comparar con NULL en lugar de is null. | Also to compare against NULL we use == nil instead of is null. |
Si la llamada falla retorna nil, más un string describiendo el error. | If this function fails, it returns nil, plus a string describing the error. |
Random Word
Roll the dice and learn a new word now!
Want to Learn Spanish?
Spanish learning for everyone. For free.
