Question
Atualizado em
26 dez 2016
- Japonês
-
Inglês (EUA)
-
Alemão
-
Inglês (RU)
Pergunta sobre Inglês (EUA)
O que significa Multiple values on the sides of an assignment is not only to functions. ?
O que significa Multiple values on the sides of an assignment is not only to functions. ?
I think it's not written by a native speaker but I can't understand the relationship between "multiple values" and "to function". (TT)
Respostas
28 dez 2016
Featured answer
- Inglês (EUA)
That looks correct, but I'm not fluent in Japanese, so I'm not 100% sure
I think the original sentence was worded in a confusing way. It means that it's not always "a,b = function()" and can also be something like "a,b = b,a"
Read more comments
- Inglês (EUA)
I can't understand the sentence but it seems like this is about programming. I am a computer science major so I might be able to understand if I see the context.
前後を見せて下さい。
- Japonês
Yes, this is about programming, Golang ;) I'm translating this article into Japanese but I couldn't really understand "to function"
The whole paragraph is:
----------------------------------------------------------
Function Return Values
Functions can return not only one single value, but multiple values. This seems to be a bad practice if not used properly. Python does that. Perl does that. It can be of good use. It is mainly used to return a value and a ‘nil’ or error code. This way the old habit of encoding the error into the returned type (usually returning -1 as error code and some non-negative value in case there is some meaningful return value as in C std library calls) is replaced with something much more readable.
Multiple values on the sides of an assignment is not only to functions. To swap two values you can write:
a,b = b,a
----------------------------------------------------------
I translated that part like this:
「代入の両側の、複数ある値は、関数に渡されるだけではない。二つの値を入れ替えるには、次のように書くことができる。」
Do you think 「関数に」 is correct?
Thank you for your help!!
The whole paragraph is:
----------------------------------------------------------
Function Return Values
Functions can return not only one single value, but multiple values. This seems to be a bad practice if not used properly. Python does that. Perl does that. It can be of good use. It is mainly used to return a value and a ‘nil’ or error code. This way the old habit of encoding the error into the returned type (usually returning -1 as error code and some non-negative value in case there is some meaningful return value as in C std library calls) is replaced with something much more readable.
Multiple values on the sides of an assignment is not only to functions. To swap two values you can write:
a,b = b,a
----------------------------------------------------------
I translated that part like this:
「代入の両側の、複数ある値は、関数に渡されるだけではない。二つの値を入れ替えるには、次のように書くことができる。」
Do you think 「関数に」 is correct?
Thank you for your help!!
- Inglês (EUA)
That looks correct, but I'm not fluent in Japanese, so I'm not 100% sure
I think the original sentence was worded in a confusing way. It means that it's not always "a,b = function()" and can also be something like "a,b = b,a"
- Inglês (EUA)
Would you mind sending me the link to the translated article after you finish writing it? I'd like to practice my Japanese by reading it :)
- Japonês
Thank you so much for your help! I think I understood it :)
Sure, how can I send it to you?
Sure, how can I send it to you?
- Inglês (EUA)
- Japonês
Sorry, I noticed this now. I'm gonna send you soon :)
どういたしまして!
どういたしまして!

[Notícias] Ei você! Aquele que está aprendendo um idioma!
Você sabe como melhorar suas habilidades no idioma❓ Tudo o que você precisa fazer é ter sua escrita corrigida por um falante nativo!
Com a HiNative, você pode ter sua escrita corrigida por falantes nativos gratuitamente ✍️✨.
Com a HiNative, você pode ter sua escrita corrigida por falantes nativos gratuitamente ✍️✨.
Registar
Related questions
-
¿cuál es la diferencia entre "No" y "less" al expresar la falta de algo?
Por ejemplo:
- No limit...
Respostano limits = sin límites limitless = sin límite es lo mismo básicamente
-
O que significa The usefulness of individual difference measures and tasks in miniature declines ...
Respostait doesn't really make sense, where did you read it?
-
O que significa Long-distance relationships have a way of not working out.?
RespostaIt means long distance relationship usually don’t work out/ happen/ succeed - have a way of not working out.
-
O que significa only a single circle in a memory set of two could prevent correspondence errors?
Resposta只有两个内存集中的一个圆圈可以防止对应错误
-
Qual é a diferença entre You can do side jobs quality without any special skills. e You can do qu...
RespostaThe first sentences is incorrect. It does not make sense in English. The second sentence is perfectly correct. In English, the adjective a...
-
O que significa You don't have to be a do-it-yourselfer to own a few basic hand tools.?
Respostado-it-yourselfer are people that would rather fix something that is broken then call someone to come and fix it this is saying that all p...
Similar questions
- The values of things are not only determined by the prices you payed, but also by how much you us...
- It is argued that those values cherished by older generations are no longer useful in helping you...
- in a nutritional values table, when there is the percentage based on daily needed kcal, it is bet...
Trending questions
- O que significa do u know what's better than 69? it's 88 because u get 8 twice. please explain t...
- O que significa I do me.?
- O que significa smoke sprite?
- O que significa bing chilling?
- O que significa 1?
Previous question/ Next question